Handy Command Line Tips for Mac OSX

Download a File from the Web & Watch Progress
#curl -O url
example: #curl -O…
Be sure to use the full URL. Also, remember to use the upper case ‘O’ and not the lowercase ‘o’ to keep the same file name on your local machine.
Instantly Create a Blank File or Multiple Files
#touch filename
example: touch index.html gallery.html about.html
Speed Up Mission Control Animations
#defaults write expose-animation-duration -float 0.15;killall Dock
How to Delete All DS_Store Files from a Mac
#sudo find / -name “.DS_Store” -depth -exec rm {} \;
Sleep a Mac from the Command Line
#pmset sleepnow

  Related Posts
  • No related posts found.