Skip to content

Instantly share code, notes, and snippets.

@karbassi
Created November 13, 2009 16:14
Show Gist options
  • Save karbassi/233931 to your computer and use it in GitHub Desktop.
Save karbassi/233931 to your computer and use it in GitHub Desktop.
# Find process
psf (){ ps auxwww | grep -i \[${1:0:1}\]${1:1}; }
# psf firefox
ali 2997 5.4 27.9 1740212 1170856 ?? S Tue07AM 216:34.69 /Applications/Firefox.app/Contents/MacOS/firefox-bin -psn_0_340051
# kill 2997
# psf mail
ali 138 0.0 0.4 430472 16848 ?? S Tue07AM 2:59.97 /Applications/Gmail Notifr.app/Contents/MacOS/Gmail Notifr -psn_0_102425
ali 37204 0.0 0.7 450524 31348 ?? R 9:30AM 0:05.49 /Applications/Mail.app/Contents/MacOS/Mail -psn_0_7444249
# kill 37204
# exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment