Skip to content

Instantly share code, notes, and snippets.

@interactiveRob
Last active November 16, 2021 04:29
Show Gist options
  • Save interactiveRob/130302323988176314fd4f4cc6ec1527 to your computer and use it in GitHub Desktop.
Save interactiveRob/130302323988176314fd4f4cc6ec1527 to your computer and use it in GitHub Desktop.
Useful Mac Terminal Commands

Kill Processes

  • Bluetooth -- sudo killall blued
  • Webcam -- sudo killall AppleCameraAssistant; sudo killall VDCAssistant
  • Finder -- sudo killall Finder
  • Sound -- sudo killall coreaudiod
  • Fix Eternal Harddrive mounting issue -- sudo pkill -f fsck

Find Application Serial Keys

Panic Coda -- defaults read com.panic.Coda2 SerialNumber

Copy an entire Folder/Directory from a server

scp -r [email protected]:/path/to-stuff/you/want     /Users/rkirkner/path/to-put/the-stuff/in/

Copy SSH key to server

ssh-copy-id -i ~/.ssh/mykey user@host

Copy local SSH key to clipboard

pbcopy < ~/.ssh/id_rsa.pub

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