Sometimes, either just for fun or to slow down others in a KOTH style game, I wanna run pkill -t pts/ID on other people's shells. The key here is to filter my own IP from w's output and quickly kill all terminals not from my IP. I could manually pkill while looking at w output but that takes time and automated is just better. For even more fun, consider catting /dev/urandom to every shell that's not the user's.
Sometimes, either just for fun or to slow down others in a KOTH style game, I wanna run
pkill -t pts/ID
on other people's shells. The key here is to filter my own IP fromw
's output and quickly kill all terminals not from my IP. I could manuallypkill
while looking atw
output but that takes time and automated is just better. For even more fun, considercat
ting/dev/urandom
to every shell that's not the user's.