[LBo] Re: PATH

Sam Morgan s.morgan at linuxbasics.org
Tue Nov 7 03:18:27 CET 2006


Eric Archer wrote:
> Dave Lerner wrote:
>> jisao wrote on 11/05/2006 07:37 PM:
>>> If your $PATH is lost in BASH, how do you restore the default one
>>> (without exiting the shell)?
>> Here's one way:
>>
>> $ bin/bash
>> $ echo $PATH
>>
>> Save the output of the above command, e.g. in the clipboard.
>>
>> $ exit
>> $ PATH=(output saved above)
>>
> Well I have tried the above instructions and got the following:
>
three questions:
1)
doesn't this command have to have the *export* command in the front of the 
*$PATH* part?

2)
I don't think there is a space between $ and PATH

3)
doesn't the (output saved above) have to be enclosed in quotes??

as in:
export $PATH="(output saved above)"


-- 
God Bless,
Sam Morgan

linux the lifetime learning experience


More information about the QnA mailing list