3-Configurig Bash Shell
3-Configurig Bash Shell
Shell Variables
A variable is a name or identifier that can be assigned a value. The shell and other commands
read the values of these variables, which can result in altered behavior depending on the
contents (value) of the variable.
You assign a value to a variable by typing the name of the variable immediately followed by the
equal sign = character and then the value. For example:
Local and Environment Variables
A local variable is only available to the shell in which it was created. An environment variable is
available to the shell in which it was created, and it is passed into all other commands/programs
started by the shell.