Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can't run bash or sudo commands

I have a Mac Pro with OS X 10.8.2 and also an older iMac running OS X 10.6.8. On neither Mac can I run any bash or sudo commands! I always get command not found.


Both Macs have fresh installs of OS X, did I forget to install something? Is X11 needed? or Xcode?


Thanks for any help.

Mac Pro, Mac OS X (10.7.4)

Posted on Mar 6, 2013 3:58 PM

Reply
2 replies

Mar 6, 2013 4:17 PM in response to ClarkDV

Back up all data.


Select

Shell ▹ New Command

from the Terminal menu bar. Copy and paste the following line into the text box that opens:

mkdir disabled_shell_files; mv .profile .bash* $_


Your old shell initialization and history files will be saved in a directory with the indicated name at the top level of your home directory.

Can't run bash or sudo commands

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.