Last active
December 20, 2015 14:39
-
-
Save kjbrum/36f3c76a2bd0359f5074 to your computer and use it in GitHub Desktop.
Useful commands for Terminal.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Move all .jpgs files to a jpg folder | |
mkdir jpg && mv *.jpg jpg | |
mkdir jpg && find . -type f -name "*.jpg" -exec mv {} jpg \; | |
// Show hidden files in finder | |
defaults write com.apple.finder AppleShowAllFiles -boolean true && killall Finder | |
// Hide hidden files in finder | |
defaults delete com.apple.finder AppleShowAllFiles && killall Finder | |
// Add a spacer in the dock | |
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}' && killall Dock | |
// Kill Dashboard | |
defaults write com.apple.dashboard mcx-disabled -boolean YES && killall Dock | |
// Show Dashboard | |
defaults write com.apple.dashboard mcx-disabled -boolean NO && killall Dock | |
// Play Star Wars | |
telnet towel.blinkenlights.nl | |
// View error logs live | |
tail -f /path/to/log | |
// Change computer hostname | |
sudo scutil –-set HostName new_hostname | |
// Resize multiple images | |
http://www.maclife.com/article/columns/terminal_101_resize_images_terminal |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment