Useful Mac Terminal Hijinks

Last updated: January 2, 2018

Change the Screenshot save location:

defaults write location /your/path/here/

Reset the icons in Launchpad:

defaults write ResetLaunchPad -bool true; killall Dock

Show hidden files and folders:

defaults write AppleShowAllFiles -bool TRUE
killall Finder

Custom Login Message:

sudo defaults write /Library/Preferences/ LoginwindowText "In case of loss, call 555-555-5555."

Stay Awake

caffeinate -u -t 5400

Where -t is the number of seconds to stay awake
1 hour = 3600

Make Spacers for the Dock:

defaults write persistent-apps -array-add '{"tile-type"="spacer-tile";}'
killall Dock

Install libdvdcss for use with Handbrake

/usr/bin/ruby -e "$(curl -fsSL"


brew install libdvdcss

Visit the Archive for more posts.