Skip to content

Instantly share code, notes, and snippets.

@phase
Created April 12, 2016 06:08
Show Gist options
  • Select an option

  • Save phase/df78bd45134d23bbbec79aff7e57b214 to your computer and use it in GitHub Desktop.

Select an option

Save phase/df78bd45134d23bbbec79aff7e57b214 to your computer and use it in GitHub Desktop.
Kill TTYs
kill $(ps -u phase | grep -Po '^\s*\d+(?= tty)') -9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment