kill all process of user 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`