![]() ![]() ![]() If that doesn’t happen, you’ll need to type a few more letters to distinguish the environment variable from other commands with names that start with those same letters: The name of the variable is completed by the shell. Type a few letters of the name and hit Tab. To see the value held by an environment variable, you need to add a dollar sign ( $) to the start of its name.Ī nice touch is that you can use tab completion to fill in the environment variable name for you. We can see what some of these are set to using nothing more sophisticated than echo, which will write the values to the terminal window. RELATED: How to Use pushd and popd on Linux _: The underscore ( _) environment variable holds the last command that was typed.HOME: The home directory of the current user.LANG: The language, localization, and character encoding settings. ![]() PATH: A list of directories that the shell will search through to find command executables. ![]()
0 Comments
Leave a Reply. |