User Tools

Site Tools


ubuntu:environment_variables

This is an old revision of the document!


Ubuntu - Environment variables

Environment variables are dynamic values which affect the processes or programs on a computer.

Environment variables are case-sensitive and usually they are created in upper case.

Common Environment Variables

VariableDescription
PATHThis variable contains a colon (:)-separated list of directories in which your system looks for executable files.
USERThe username
HOMEDefault path to the user's home directory
EDITORPath to the program which edits the content of files
UIDUser's unique ID
TERMDefault terminal emulator
SHELLShell being used by the user

Commands for Environment Variables

CommandDescription
echo $VARIABLETo display value of a variable
envDisplays all environment variables
VARIABLE_NAME= variable_valueCreate a new variable
unsetRemove a variable
export Variable=value To set value of an environment variable
ubuntu/environment_variables.1576442229.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki