meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| general:computerenvironment:environmental_variables [2023/10/16 12:08] – ingo | general:computerenvironment:environmental_variables [2023/10/16 12:18] (current) – ingo | ||
|---|---|---|---|
| Line 7: | Line 7: | ||
| </ | </ | ||
| - | It stores all paths where the operating system automatically looks for executable programs and scripts. If the path to a program you want to use is stored in $PATH, you can call this program from anywhere in the directory tree. For all other programs, the path to the executable file hast to be specified in the program call. | + | ===== $PATH ===== |
| + | The environmental variable // | ||
| + | < | ||
| + | ls | ||
| + | </ | ||
| + | The computer will execute the function '' | ||
| + | |||
| + | For all other programs, the path to the executable file hast to be specified in the program call. | ||
| + | ===== What is the value of my environmental variable? ===== | ||
| You can check for the value of an environmental variable by simply calling the function // | You can check for the value of an environmental variable by simply calling the function // | ||
| Line 15: | Line 23: | ||
| </ | </ | ||
| + | ===== Modifying environmental variables ===== | ||
| + | ==== only in the active shell ==== | ||
| If a program that is not in your default // | If a program that is not in your default // | ||
| Line 23: | Line 33: | ||
| adds the directory / | adds the directory / | ||
| - | Changing // | + | ==== permanently ==== |
| + | Changing // | ||
| < | < | ||
| .bashrc | .bashrc | ||
| </ | </ | ||
| + | Once you have modified the '' | ||
| + | - close and reopen your shell | ||
| + | - force the operating system to re-read the contents of the '' | ||
| + | < | ||
| + | source ~/.bashrc | ||
| + | </ | ||
| + | </ | ||
| <WRAP tabs> | <WRAP tabs> | ||