How to restore your Mac settings
If you installed a program which took the horrible approach of rewriting your .profile settings file and you discover you don’t have access to the shortcuts from your terminal anymore, here’s how to fix it:
- open a terminal window and make sure you navigate to the home directory
cd ~
/usr/bin/nano .profile
export PATH=/usr/bin:/bin:
. ./.profile
Now we’re talking! You can ls and sudo again!