Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-23-2002, 03:36 PM   #1
LQ Newbie
Registered: Jan 2002
Location: Knoxville, TN
Distribution: Mandrake 8.1
Posts: 12

Rep: Reputation: 0
Question PATH editing...

What configuration file is the inital PATH statement located? I know that .bashrc has a PATH statement, but mine only adds, or is that wrong? Is there a general, system wide, PATH statement that is modified by user PATHs? i.e. in DOS. in autoexec.bat you set the PATH= and that is the inital. and you can add to it by %PATH=. Where is the "PATH=" in linux?

Old 01-23-2002, 08:23 PM   #2
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
You should take a look at /etc/profile it is a simple shell script wich sets some of the important environment variables
Old 01-23-2002, 09:13 PM   #3
Registered: Jan 2002
Distribution: LFS
Posts: 90

Rep: Reputation: 15
For a user, there are really four places the PATH might be set. /etc/bashrc, /etc/profile, ~/.bashrc, and ~/.bash_profile. Different distros put the path into those files differently so you'll look through 'em and figure out how your distro does things.


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
editing $PATH resist_r Linux - Newbie 3 07-09-2005 10:33 PM
Editing Path and LD_LIBRARY_PATH Nappa Slackware 5 11-24-2003 12:14 AM
PATH statement editing? cottonmouth Linux - General 2 08-17-2003 09:00 PM
Editing my $PATH variable bml Linux - General 6 03-25-2003 09:14 PM
Editing the PATH Cichlid Linux - General 3 01-06-2002 08:47 PM > Forums > Linux Forums > Linux - Newbie

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

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