Skip to content

Instantly share code, notes, and snippets.

@yuchan
Created October 30, 2012 09:21
Show Gist options
  • Save yuchan/3979203 to your computer and use it in GitHub Desktop.
Save yuchan/3979203 to your computer and use it in GitHub Desktop.
unix tips

忘れがちなものをメモ

tar 圧縮

tar -cvf file_B.tar dir_A
tar -cvzf file_B.tar.gz dir_A

スワップ 無効・有効切り替え(mac)

# スワップを無効にする
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist

# スワップを有効に戻す
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.dynamic_pager.plist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment