Created
May 12, 2021 16:22
-
-
Save TheTechromancer/cc13cac6601c5a2579100acb041169bb to your computer and use it in GitHub Desktop.
Kill all detached mosh sessions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
kill $(last -f /var/run/utmp | egrep -o 'mosh \[[0-9]+\]' | egrep -o '[0-9]+') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment