Skip to content

Instantly share code, notes, and snippets.

@darrend
Last active August 29, 2015 13:56
Show Gist options
  • Save darrend/9146876 to your computer and use it in GitHub Desktop.
Save darrend/9146876 to your computer and use it in GitHub Desktop.
kill unattached mosh sessions
ps -e | grep "mosh-server" | grep -v "^$PPID" | awk '{print $1}' | xargs -r --verbose kill -TERM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment