How to kill all process of a user via SSH

Sometimes you may need to kill all process of a particular user. This can be done using following SSH command.
[alert style=green_a] pkill -u username [/alert]

The above SSH command will all process by user username. Like if you want to kill all process by user ravi, change username to ravi.


You can also use killall command to kill all processes of a user.
[alert style=green_a] killall -u username [/alert]


Our Top Rated Host

Related Posts