Skip to content

Instantly share code, notes, and snippets.

@0x90
Created September 6, 2014 00:50
Show Gist options
  • Save 0x90/90964e04ace2c11b71cf to your computer and use it in GitHub Desktop.
Save 0x90/90964e04ace2c11b71cf to your computer and use it in GitHub Desktop.
OS X monitor
lsof -Pnl +M -i4
lsof -Pl +M -i4
lsof -i | awk '{ print $1,$2,$9; }' | sort -u
nettop
sudo fs_usage -f filesys
sudo fs_usage -f network
sudo fs_usage -w
sudo fswatch -v -r -L -t -x /tmp
fswatch -m fsevents_monitor /tmp -v -t -x
# fswatch-run fswatch-run-bash fswatch-run-zsh
sudo fswatch-run path [paths] program_to_call
fswatch -m kqueue_monitor path
sudo opensnoop
sudo fs_usage [process name]
fs_usage -w -f filesys Mail
sudo find / -name "*.jar" -exec stat "{}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment