Envioronmental Variables Used in Linux to Control The System-2

Linux offers an opportunity to Linux hosting professionals with several environment variables that can further be used to control vital aspects of the system and user preferences etc. If you run a program from the bash shell, program automatically receives a copy of all the environment variables from the bash shell.

The “PATH” Variable:

PATH, is a list of directory names separated by colons. A Linux Hosting India professional can use the variable “$PATH” within another command to set the PATH to a different value. Suppose you are creating a new directory named bin then you can add this new directory to the PATH so that bash will look inside it too.

export PATH=$PATH:$HOME/bin

Rate this post:


1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5 out of 5)
Loading ... Loading ...