LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-12-2005, 12:44 PM   #1
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Rep: Reputation: 34
Removing path from PATH


okay, I know how to export a new path. But how can I remove it?

I have set a wrong Path direction on my $PATH, and now I want to change it... I have searched for the bashrc, bash_profile, profile, and the only PATH I found was in the profile file but is for the root user....

Im using Debian (Sarge)...
Im new on Debian... so I dont know where my path is

reg [ ]s !

Last edited by maginotjr; 02-12-2005 at 12:57 PM.
 
Old 02-12-2005, 01:09 PM   #2
Linux~Powered
Member
 
Registered: Jan 2004
Location: /lost+found
Distribution: Slack`er-current
Posts: 845

Rep: Reputation: 31
Look in /etc/profile
 
Old 02-12-2005, 01:32 PM   #3
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Do you mean you personally set it wrong on the fly? If you simply issued a command changing your path that isn't permanent and you only need to exit the xterm (or logout entirely and log back in again if you're on a text console). Or, more directly, simply 'echo $PATH' and type 'export PATH=' and copy and edit the results of the previous command. (You can append a path with '$PATH:newpath' but removing a path can't be so easily done, so far as I know. Maybe 'export PATH=`echo $PATH | sed 's,/bad/path\:,,'`.)

But, yeah, if it's in a config file, it'll take effect for every shell (basically), and it'd be in /etc/profile or the like and then on to your ~/.bash* files and a ~/.profile if you have one.
 
Old 02-12-2005, 02:23 PM   #4
maginotjr
Member
 
Registered: Aug 2004
Location: BR - Floripa
Distribution: Ubuntu 9.10 - 2.6.x.x
Posts: 661

Original Poster
Rep: Reputation: 34
thanks for the info!

Was on the fly, and like you said after close the term the Path was set back.
Now i understand more about this


JRE is the same Java Virtual Machine? O_o


[ ]ś
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Could not init font path element unix/:7100, removing from list! jeffreybluml Fedora 18 10-12-2011 08:06 AM
Image Path reference in Linux (Absolute path) javabuddy Linux - General 7 06-05-2006 07:45 AM
removing one directory in PATH env chunlee Linux - Newbie 4 11-06-2004 07:50 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM
removing path variables globally Nevetsmik103081 Linux - General 1 07-05-2003 01:17 PM


All times are GMT -5. The time now is 10:26 PM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration