how to kill process linux code example

Example 1: linux kill process

ps -ef| grep  #Find the all program threads
kill - 9  # Kill it immediately (Second column from above command)

Example 2: ubuntu kill process

pidof slack 
9734 9718 9716 9708 9622 9619
sudo kill -9 process_id

pidof apt 
9734 9718 9716 9708 9622 9619
sudo kill -9 9734 9718 9716 9708 9622 9619

Example 3: kill a process with pid

kill -9 PID # kill -9 94228

Example 4: kill process linux

#terminate process with SIGKILL signal by process id
kill -9 pid

Example 5: linux kill process

kill -9 3827

kill -9 3919

kill -9 10764

kill -9 11679

Example 6: linux kill process

ps aux | grep chrome

Tags:

Misc Example