Macでよく使われるShellコマンド


Sublime Text 2コマンドライン起動の作成
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

このとき、sublコマンドを使用してSublime Text 2を起動できます.参照先:https://www.sublimetext.com/d...
PS:Sublime Text 3なら、数字を修正すればいいはずです.
ホスト名の変更hostname
sudo scutil --set HostName MBP

Finder非表示ファイルの表示/非表示
defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder
defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder