MacOS tips and tricks¶
Show/hide the hidden files¶
Temporary keyboard shortcut to toggle¶
Cmd+Shift+.
Always show or hide¶
# To show
defaults write com.apple.finder AppleShowAllFiles TRUE
# To hide
defaults write com.apple.finder AppleShowAllFiles FALSE
# Restart Finder after that
killall Finder
Add space to dock¶
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="small-spacer-tile";}'; killall Dock
Screenshot¶
Change default location¶
Change default name¶
Delete all executable files in command line¶
List all apps installed from App Store¶
find /Applications -path '*Contents/_MASReceipt/receipt' -maxdepth 4 -print | sed 's#.app/Contents/_MASReceipt/receipt#.app#g; s#/Applications/##'