Pkill User Procs

Problem

Want to kill all processes, for a specific user.



Solution

This command will send a -KILL signal, equivalent to minus 9:


pkill -KILL -U username



Example


So to kill all processes owned by username marcus:


pkill -KILL -U marcus

If you issue kill -l – that is kill minus L, it will show all the symbol to numeric codes. Although you can just use numeric with pkill:


pkill -9 -U marcus



Reference

[tags]pkill, proc kill, Unix Coding School[/tags]



Leave a Reply

Your email address will not be published. Required fields are marked *