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?
How will I make this /media/De Soft/mongodb/bin PATH variable permanent?
Everyone is saying export PATH=$PATH:media/De\ Soft/mongodb/bin to your ~/.profile, or .bashrc, or .zshenv depending on your shell. I don't know what is ~/.profile, or .bashrc, or .zshenv. And what they do actually?
And how will I add export PATH=$PATH:my/path to my .profile/.bashrc/.zshenv?
Where can I modify PATH line in ubuntu 12.04? I typed PATH=$PATH:$HOME
then typed export PATH. Home dir was in path when I looked at it with echo $PATH but went away after I relogged in. How can I make it permanent? and where exactly is it in a file in Ubuntu 12.04?
I need to add dev tools (such as JDK and friends) to my PATH. How do I change $PATH variable in OS X 10.8.x? Where does $PATH get set in OS X 10.8 Mountain Lion?Read answer to: "Mac OS X: Set / Change $PATH Variable"