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 01-06-2002, 05:24 PM   #1
Registered: Jan 2002
Location: Montreal
Distribution: Ubuntu 8.10
Posts: 178

Rep: Reputation: 30
Unhappy Editing the PATH

I still very new to linux

How to I edit the PATH? Is the a PATH for root adn users? I know about the 'export' command to add a directory, but what if I want to remove one or change the order.


Old 01-06-2002, 06:08 PM   #2
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
if you want to remove somethign from the path, you should make sure specificallyit's not set in the first place (check /etc/rc.local, /etc/profile /etc/bashrc etc...) or totally re set your path in your own .bashrc
Old 01-06-2002, 06:17 PM   #3
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
The PATH environment variable is in .bash_profile file in your home derictory, you can work from there. Also the global path I believe in /etc/bashrc, take a look there. I know something like c shell is storing $PATH in .login and if you use c shell (/bin/csh) then you can set path with
set pat=(/usr/bin /bin /sbin/) # and so on just put different directoies separated by space in ().
Old 01-06-2002, 08:47 PM   #4
Senior Member
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 56
You can also edit /etc/profile to adjust your path.


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
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
PATH editing... Jester888 Linux - Newbie 2 01-23-2002 09:13 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:44 AM.

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