Linux Tips and Tricks

Linux Tips and Tricks

Kill the User and his Processes


Here is the one line command which kill the specific user and his all running processes.

kill -9 `ps aux | awk -v var=”kamaraj” ‘$1==var { print $2 }’`

The above command will kill all the processes of the user kamaraj

Note : some processes needs root access to kill

posted under Uncategorized

Email will not be published

Website example

Your Comment:

Recent Comments