LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-05-2003, 01:12 PM   #1
Nevetsmik103081
LQ Newbie
 
Registered: Oct 2002
Posts: 6

Rep: Reputation: 0
removing path variables globally


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.
 
Old 07-05-2003, 01:17 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Environment Variables kleener Linux - General 1 04-22-2005 06:17 AM
Removing path form PATH maginotjr Linux - Newbie 3 02-12-2005 02:23 PM
Can't modify PATH globally for SOAP interaction... crazybio Linux - Newbie 2 12-03-2003 01:29 PM
Globally set PATH for all users glock19 Red Hat 8 11-09-2003 02:25 PM
setting env variables globally raven Linux - General 6 02-21-2003 08:04 AM

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

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