cpu type
sysctl -n machdep.cpu.brand_string
system_profiler | grep Processor
disk info / mount umount
diskutil list
diskutil unmount /dev/disk1s2
diskutil mount /dev/disk1s2
user control
pkill -u username
ps -u username
Mountain Lion X system XQuartz
http://xquartz.macosforge.org/landing/
Time machine backup (use on ssh to remote
tmutil startbackup
tmutil stopbackup
shell history incantation
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head -15
ruby installs utilities / packages
notifier
sudo gem install terminal-notifier
use case
terminal-notifier -message "Hello, this is my message" -title "Message Title"
flags changing
chflags nohidden /path/to/hide/file.txt
download history:
sqlite3
~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV*
'select LSQuarantineDataURLString from LSQuarantineEvent'
sqlite3
~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV*
'select LSQuarantineDataURLString from LSQuarantineEvent' | sort
force time update
sudo ntpdate -u time.apple.com
No comments:
Post a Comment