Skip to content

Instantly share code, notes, and snippets.

@githubutilities
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save githubutilities/d58b4f5960083387b7ab to your computer and use it in GitHub Desktop.

Select an option

Save githubutilities/d58b4f5960083387b7ab to your computer and use it in GitHub Desktop.
OSX app related things

OSX app related things

Getting a info about a specific disk

diskutil info /

for more info, checkout diskutil man page

Get Bundle ID of OSX app

osascript -e 'id of app "Textual 5 Trial"'

Reference

Kill A Program

# get process id
ps waux

# send a hang up signal to process
sudo kill -HUP <process-id>
# kill it softly
sudo kill <process-id>
# kill it hardly
sudo kill -9 <process-id>

Clear OSX caches

Reference

OSX Preference

Reference

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment