Suddenly I lost almost everything on the command line. I can do cd, exit and pwd…nothing else that I tried…no ls, no vi…nothing….
I do have an open terminal that’s still working, but no new ones…as soon as I exit out of the current session, I’m screwed…
I was about to say I’m baffled…but I just noticed that now /etc is symlinked to /etc/private. Don’t remember that being the case before…
I recently upgraded to Snow Leopard…but I’ve rebooted since with no problems… No clue when this came about…
Any ideas on debugging it?
It sounds like your
PATHenvironment variable may be messed up. You may have messed it up in a.profile,.bashrc,.tcshrc,.loginor similar shell startup file. Check using:Then (assuming you are using a bash shell) try setting it with:
You could also try typing commands using the full path, e.g.
/bin/ls. If you want to make sure that your commands are still there you should be able to useecho /bin/* /usr/bin/*./etchas always been a symbolic link toprivate/etcon Mac OS X.