LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   What does this refer to (https://www.linuxquestions.org/questions/linux-newbie-8/what-does-this-refer-to-4175449949/)

thirstonlinux 02-13-2013 03:22 AM

What does this refer to
 
Please let me know what does the below line refer to

PATH=$PATH:/usr/sbin:/sbin:$HOME/bin

druuna 02-13-2013 03:25 AM

Quote:

Originally Posted by thirstonlinux (Post 4890527)
Please let me know what does the below line refer to

PATH=$PATH:/usr/sbin:/sbin:$HOME/bin

This expands the PATH setting. It adds /usr/sbin, /sbin and the bin dir in a home directory ($HOME/bin)

Use echo $PATH to see the full content of PATH.

thirstonlinux 02-13-2013 03:28 AM

Also let me know where it is useful

druuna 02-13-2013 03:32 AM

Quote:

Originally Posted by thirstonlinux (Post 4890532)
Also let me know where it is useful

Without a proper PATH (some of) the executables cannot be found.

EDIT: Also have a look here: Linux path environment variable

frankbell 02-13-2013 08:31 PM

When directories are in your path, you do not need to enter the path to an application to run it. For example, if /usr/bin is in your path, you can enter

Code:

thunderbird
instead of

Code:

/usr/bin/thunderbird
to start the Thunderbird email client.


All times are GMT -5. The time now is 07:26 PM.