Mac OS

Mac OS Commands

Here's a cheatsheet of some commonly used Mac OS commands. There are too many to list all of them, these just scratch the surface. #MD5 HASH: md5 -s "my string value" #BG PROCESS: your-command > dump.out 2>&1 & #SYMBOLIC LINK: ln -s /path/to/source target #CURL: curl -I http://google.com curl -L -v http://google.com > dump.out 2>&1 curl -x www-proxy.us.abc.com:80 http://google.com #ZIP and TAR: zip -r archive.zip folder1 folder2 unzip -l archive.zip tar -zcvf archive.tar.gz folder1 folder2 tar -ztvf archive.tar.gz tar -zxvf archive.tar.gz #REFACTOR: find . -type f -name "*Controller.php" -print0 xargs -0 sed -i 's/string1/string2/g' #GREP: grep -r -i --exclude='*\.svn*' "string1" . #FIND: find . -type f -name '.DS_Store' -delete rm -rf `find . -type d…