[LBo] PATH

Sam Morgan s.morgan at linuxbasics.org
Mon Nov 6 02:15:55 CET 2006


jisao wrote:
> If your $PATH is lost in BASH, how do you restore the default one
> (without exiting the shell)?
> 
by rewiting it from the backup you made before you started messing with it
you did make a text file with the a copy and paste of the backup, didn't you?
sorry, salt in the wound, huh?

also if the terminal you are using is set to scroll back up far enough you can 
copy and paste the original back in.

****
I'm not positive about this part below, please someone correct me if I'm wrong!!
****
try 'export' (no quotes) with no arguments at the command line in another 
terminal as in do the following:

open another terminal using Ctrl Alt F2
login as your user
run the command:
user at computer:$ export

then switch to the original terminal and enter
user at computer:$ export $PATH="paste the path you copied here within the quotes"


-- 
God Bless,
Sam Morgan

linux the lifetime learning experience


More information about the QnA mailing list