LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-13-2013, 03:22 AM   #1
thirstonlinux
Member
 
Registered: Jul 2011
Posts: 62

Rep: Reputation: Disabled
What does this refer to


Please let me know what does the below line refer to

PATH=$PATH:/usr/sbin:/sbin:$HOME/bin
 
Old 02-13-2013, 03:25 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Quote:
Originally Posted by thirstonlinux View Post
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.
 
1 members found this post helpful.
Old 02-13-2013, 03:28 AM   #3
thirstonlinux
Member
 
Registered: Jul 2011
Posts: 62

Original Poster
Rep: Reputation: Disabled
Also let me know where it is useful
 
Old 02-13-2013, 03:32 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389Reputation: 2389
Quote:
Originally Posted by thirstonlinux View Post
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

Last edited by druuna; 02-13-2013 at 03:34 AM.
 
1 members found this post helpful.
Old 02-13-2013, 08:31 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,125
Blog Entries: 14

Rep: Reputation: 3065Reputation: 3065Reputation: 3065Reputation: 3065Reputation: 3065Reputation: 3065Reputation: 3065Reputation: 3065Reputation: 3065Reputation: 3065Reputation: 3065
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Refer to SD Drive Location twchambers Linux - Newbie 2 06-01-2010 11:46 AM
What does compatibility refer satimis Linux - Hardware 6 05-09-2010 09:45 PM
Book to refer for RHCE 033 infovijay Linux - Certification 1 07-21-2009 11:19 PM
refer whole server traffic t0bias Linux - Server 3 06-12-2008 10:03 AM
HP-UX AR OE what do they refer to, differences murugesan Linux - Distributions 0 04-18-2004 11:39 PM


All times are GMT -5. The time now is 07:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration