I accidentally unset all the directories of $PATH while trying to add a new one in ~/.bashrc. I opened a new terminal window as I was editing and now $PATH is empty. I'm worried if I boot from another drive to find the $PATH I won't be able to boot into this drive again.
Basically, what is the default result of echo $PATH?
~/.bashrcis the wrong place to set environment variables though. You should do that in~/.profileinstead. – geirha Mar 16 '12 at 06:38:$PATHat the end restored the PATH. And yes in~/.profilethere is code to "set PATH so it includes user's private bin if it exists" i.e.$HOME/bin– Cee Mar 16 '12 at 08:24