Skip to content

Instantly share code, notes, and snippets.

@s10wen
Last active October 7, 2015 02:17
Show Gist options
  • Save s10wen/3089140 to your computer and use it in GitHub Desktop.
Save s10wen/3089140 to your computer and use it in GitHub Desktop.
Terminal - Useful Commands

Disable the dashboard in Mac OS X:

defaults write com.apple.dashboard mcx-disabled -boolean YES

Kill the dock:

killall Dock

Kill spotlight:

sudo mdutil -a -i off

Fix Mamp Status Red, not starting:

ps aux | grep mysql 
lsof -i 
killall -9 mysqld 

Show file permissions:

ls -l

Change file permissions, -R 'recursive' so applies to all files in folder, * 'will apply to all'. For more on permissions numbers see - http://support.hostgator.com/articles/cpanel/how-to-change-permissions-chmod-of-a-file:

sudo chmod -R 755 *
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment