LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-23-2002, 02:36 PM   #1
Jester888
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, 07:23 PM   #2
neo77777
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, 08:13 PM   #3
TacKat
Member
 
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:44 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
Open Source Consulting | Domain Registration