LinuxQuestions.org
Visit Jeremy's Blog.
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 01-12-2005, 11:15 PM   #1
blackzone
Member
 
Registered: Jul 2004
Posts: 256

Rep: Reputation: 30
echo $PATH?


"echo $PATH" shows:
Code:
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin
but where in the startup script is the $PATH setup?
 
Old 01-12-2005, 11:21 PM   #2
sphynx
Member
 
Registered: Feb 2002
Location: /usr/home
Distribution: Ubuntu / Gentoo / Whatever
Posts: 67

Rep: Reputation: 15
what distro are you using?

for redhat 9 you can see the PATH=$PATH: in your .bash_profie file. This is run whenever a user logs in. In debian based KNOPPIX i can see my PATH variable setup initiallyin /etc/profile. RH may have it in /etc/profile or /etc/.profile. This path is then added to in .bash_profile for individual users.


files that begin with a . are hidden and can be seen with

ls -a
or i prefer
ls -al
 
Old 01-12-2005, 11:58 PM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
Bash Settings for all users are done in /etc/profile. Settings for the individial user is done in ~/.bash_profile.

The initial PATH will be set up in /etc/profile. If you wish to modify your path, make the changes in ~/.bash_profile.


On a side note, please add what distro you are using to your profile, as it makes it easier for people to help you.

I hope this helps
--Ian
 
  


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
"echo $path" acj Linux - Newbie 8 02-04-2005 06:56 PM
want full description of "echo num > / path/...." zameer_india Linux - Newbie 5 01-08-2005 04:10 AM
Kphone echo (echo echo) scabies Linux - Software 0 10-18-2004 03:59 PM
echo $PATH problem acbenny Linux - General 15 08-12-2004 06:15 PM
how do i edit my echo$PATH Laptop2250 Linux - Newbie 6 11-15-2003 12:33 PM


All times are GMT -5. The time now is 10:33 PM.

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