MAC terminal issue
Hi,
Till yesterday everything was fine..But when i opened terminal today morning and tyoed coomands they are teeling like
-bash: java: command not found -bash: sudo: command not found etc
I dont know what happened. Yesterday i changed envt variable..i dnt knw it is because of that..now i dnt know how to reset that because when i type
open -e.bash_profile
it shows,
-bash: open: command not found
pls help
Sounds like your PATH environment variable got reset or messed up in some way. Can you echo your path to see what it's set to (just wrapping it in pipes so that if PATH is empty you can still see that the echo succeeded):
$ echo "|$PATH|"
If that result is empty or lacks something like /bin or /usr/bin, then that is probably your problem. You'll need to track down where that is getting messed up and fix that. You should be able to still run commands, you'll just need to do so using their full path, something along the lines of:
$ /usr/bin/vim ~/.bash_profile
That path may differ on OSX.