LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   broken $PATH (http://www.linuxquestions.org/questions/linux-newbie-8/broken-%24path-118959/)

tantric 11-22-2003 03:48 PM

broken $PATH
 
Hi,

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

Whoops!!

Any hints would be greatfully received.

Thanks

Mara 11-22-2003 03:52 PM

Use
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).

tantric 11-22-2003 04:38 PM

Thanks!!

Appreciate it.


All times are GMT -5. The time now is 03:55 AM.