Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-22-2003, 03:48 PM   #1
LQ Newbie
Registered: Oct 2003
Location: Hampshire, UK
Distribution: SuSE 8.2 RH9
Posts: 20

Rep: Reputation: 0
broken $PATH


I have accidentally wiped out all the entries in my $PATH variable

Is there anyway I can restore it? I can't run anything now!

I was using the export $PATH= command to add another, then it wiped all all that was there before


Any hints would be greatfully received.

Old 11-22-2003, 03:52 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,566

Rep: Reputation: 164Reputation: 164
export PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11/bin:$PATH

When you're changing PATH, remeber to use $PATH somewhere. It puts old PATH content into the new one (in the example above, at the end).
Old 11-22-2003, 04:38 PM   #3
LQ Newbie
Registered: Oct 2003
Location: Hampshire, UK
Distribution: SuSE 8.2 RH9
Posts: 20

Original Poster
Rep: Reputation: 0

Appreciate it.


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
Image Path reference in Linux (Absolute path) javabuddy Linux - General 7 06-05-2006 07:45 AM
Apache path and kde path questions darkraider Debian 1 11-12-2005 05:07 AM
Set the path systemwide/Set the path for a user with Slackware jayhel Slackware 1 06-12-2005 12:24 AM
Removing path form PATH maginotjr Linux - Newbie 3 02-12-2005 02:23 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM

All times are GMT -5. The time now is 09:51 PM.

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