Linux Basics for Big Data

85 / 87
Environment variables

Unix shell provides environment variables. To see the entire list of environment variables, use:


These environment variables can be used by the shell, programs or commands.

For example, $PS1 variable is used by the shell to display the prompt. To change your prompt, you can try:


The environment variable $PATH is a list of directories separated by a colon. It is used by the shell to find the file corresponding to a command.