Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-17-2003, 06:35 PM   #1
Registered: May 2002
Location: under the fig tree
Distribution: Redhat 8.0, Mandrake 9.0
Posts: 87

Rep: Reputation: 15
PATH statement editing?

How can I view and edit the PATH statement?
Old 08-17-2003, 06:55 PM   #2
Senior Member
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 372Reputation: 372Reputation: 372Reputation: 372
To display your PATH variable, at a command-line, type:

echo $PATH

To edit your PATH variable, open a text editor, then open the .bash_profile file in your home directory. You should see a line like:


Change that line to include what you want. If, for instance, you wanted to include /usr/local/test/bin to the path, change the above line to:


Save the file, log out, and log back in.
Old 08-17-2003, 08:00 PM   #3
Registered: Jul 2003
Posts: 162

Rep: Reputation: Disabled
If you want to enable it for only the session, type "export PATH=<etc>"


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PATH statement from file granny Linux - Newbie 8 04-21-2005 12:58 PM
Adding directories to the PATH statement kaplan71 Slackware 2 09-02-2004 03:57 PM
please tell me if my path statement is correct on RH 7.3 ergo_sum Linux - Newbie 9 12-12-2003 11:41 PM
What file hold the PATH statement billkris Linux - General 7 02-11-2003 10:30 PM
PATH editing... Jester888 Linux - Newbie 2 01-23-2002 08:13 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:12 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