LinuxQuestions.org
Support LQ: Use code LQCO20 and save 20% on CrossOver Office
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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
 
Thread Tools
Old 07-05-2003, 02:12 PM   #1
Nevetsmik103081
LQ Newbie
 
Registered: Oct 2002
Posts: 6
Thanked: 0
removing path variables globally


[Log in to get rid of this advertisement]
when I do the following:

# echo $PATH

I get:

/usr/bin : /usr/local/bin : /usr/local/jdk/bin/ : /usr/local/bin : /usr/local/someDirectoryThatDoesn'tExistAnymore

Is there a command or script that can get rid of the repeated directories and the ones that don't exist anymore?

Thanks.
Nevetsmik103081 is offline     Reply With Quote
Old 07-05-2003, 02:17 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Warszawa, Poland
Distribution: Debian
Posts: 9,105
Thanked: 23
There's no special command. You need to edit configuration files and remove the ones you don't need. Most of the PATH definition can be found in /etc/profiles.
Mara is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Removing Environment Variables kleener Linux - General 1 04-22-2005 07:17 AM
Removing path form PATH maginotjr Linux - Newbie 3 02-12-2005 03:23 PM
Can't modify PATH globally for SOAP interaction... crazybio Linux - Newbie 2 12-03-2003 02:29 PM
Globally set PATH for all users glock19 Red Hat 8 11-09-2003 03:25 PM
setting env variables globally raven Linux - General 6 02-21-2003 09:04 AM


All times are GMT -5. The time now is 11:01 AM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration