how to kill all user process in linux code example Example 1: kill all processes by user killall -u user Example 2: linux kill process by user pkill -9 -u `id -u username`