Skip to content

Instantly share code, notes, and snippets.

@pen
Created September 13, 2011 15:04
Show Gist options
  • Save pen/1214037 to your computer and use it in GitHub Desktop.
Save pen/1214037 to your computer and use it in GitHub Desktop.
kickout a user
#!/bin/sh
LANG=C who -u | awk "\$1 == \"$1\" { print \$7 }" | xargs -r kill -9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment