LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-22-2003, 08:52 PM   #1
Nevetsmik103081
LQ Newbie
 
Registered: Oct 2002
Posts: 6

Rep: Reputation: 0
removing environment variables


Is there any way to remove repeated or unused path variables from my PATH?

Thanks.
 
Old 06-23-2003, 07:11 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
You're going to have to do a little looking. The PATH can be set by pretty much any executable file, but the most likely places are your .bash_profile (or whatever startup file your console uses) or in the /etc/profile file.
 
Old 06-23-2003, 09:53 AM   #3
moses
Senior Member
 
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152

Rep: Reputation: 50
Here is a C program one of our old-time sysadmins wrote to collapse word lists:
http://pirlwww.lpl.arizona.edu/~mmilazzo/lq/cwl.tgz
It comes with a section 1 man page so you can place the *.1 file in your manpath under cat1 (/usr/man/cat1). You'll have to compile the program, but it should just work. IMHO, it needs a lot of work, but it does do its job right now.

This only removes repeated paths, but with a little work it could be a much more useful program. . .

Last edited by moses; 06-23-2003 at 09:55 AM.
 
  


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
Environment Variables - where do they go!?! iansoundz Linux - General 7 11-17-2005 02:27 AM
Removing Environment Variables kleener Linux - General 1 04-22-2005 06:17 AM
environment variables in c++ s3b0 Programming 6 08-27-2004 09:19 AM
environment variables kakridge Linux - Newbie 1 07-14-2003 06:25 PM
environment variables. jISV Linux - General 0 04-05-2002 06:01 AM

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

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