LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 08-17-2003, 06:35 PM   #1
cottonmouth
Member
 
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
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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:

PATH=$PATH:$HOME/bin

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:

PATH=$PATH:$HOME/bin:/usr/local/test/bin

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

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


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 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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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