===== Useful Terminal Commands ===== Mute Startup Sound: sudo nvram StartupMute=%01 Erase Hard Disk: diskutil eraseDisk JHFS+ empty /dev/disk1 Force rebuild of Finder Prefs: mv ~/Library/Preferences/com.apple.finder.plist ~/Desktop/ Make Library Folder visible: chflags nohidden ~/Library/ Cleanup Finder database: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user Backup iPad on external disk (named "disk2s2"): ln -s /Volumes/disk2s2/Documents/MobileSync/Backup ~/Library/Application\ Support/MobileSync/ Booting in verbose mode: sudo nvram boot-args=ā€-vā€ Show full path names in all Finder windows: defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES Always use expanded save dialog: defaults write -g NSNavPanelExpandedStateForSaveMode -bool TRUE Change date to March 18th 2013 12:50 for fooling older MacOS X Installers: date 0318125013 Purge cached user preferences: killall -u $USER cfprefsd Unlock folder and all files therein: chflags -R nouchg /PATH/TO/DIRECTORY/WITH/LOCKED/FILES/ Enable Screen Sharing sudo defaults write /var/db/launchd.db/com.apple.launchd/overrides.plist com.apple.screensharing -dict Disabled -bool false sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.screensharing.plist Remove all files from git cache git rm -r --cached . git add . git commit -m ".gitignore is now working"