Skip to content
Snippets Groups Projects
Commit 6e3ff36c authored by Dylan Wheeler's avatar Dylan Wheeler
Browse files

feat: adding simple script to kill of a user's currently running processes

parent a93b8ea1
No related branches found
No related tags found
1 merge request!159FEAT: adding simple script to kill all of a user's currently running processes
#!/bin/bash
username="$1"
usage() {
echo "Usage: $0 -d USERNAME"
}
if [ -z "$username" ]; then
usage
exit1
fi
userId=`id -u $1`
pkill -u $userId
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment