You are on page 1of 2

The Finder crashed:killall -KILL Finder

The Dock crashed:killall -KILL Dock    or


launchctl stop com.apple.Dock.agent

Spaces crashed:killall -KILL Dock


The Menubar crashed/refuses to be clickable:killall -KILL SystemUIServer


To turn Dashboard off:


defaults write com.apple.dashboard mcx-disabled -boolean YES
To turn Dashboard on:
defaults write com.apple.dashboard mcx-disabled -boolean NO
After any of these commands use the following to apply changes:
killall Dock

Screenshot Format (replace with jpg, pdf, png…)


defaults write com.apple.screencapture type pdf
killall SystemUIServer

Copy text from Preview


defaults write com.apple.finder QLEnableTextSelection -bool TRUE; killall
Finder

Show / Hide Hidden Files


defaults write com.apple.finder AppleShowAllFiles YES
defaults write com.apple.finder AppleShowAllFiles NO
Relaunch Finder

Edit Hosts File


sudo nano /private/etc/hosts

Enable / Disable local TimeMachine


sudo tmutil disablelocal
sudo tmutil enablelocal

Prevent sleep
caffeinate
Prevent sleep for xsecconds
caffeinate -i -t 3600
from http://snazzylabs.com/tutorial/five-advanced-tricks-for-mac-users/
or https://www.youtube.com/watch?v=uI4x0wvogco

Frequency your Mac checks for Updates (-int xdays)


defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1

Encrypt a file
encrypt (change path): openssl enc -aes-256-cbc -e -in {path-in} -out {path-
out}
decrypt (change path): openssl enc -aes-256-cbc -d -in {path-in} -out {path-
out}

You might also like