How to end task with PID in Linux

Originally published at: https://www.cyberciti.biz/faq/how-to-end-task-with-pid-in-linux/

I am a new Linux system admin. How do kill a process from the Linux command line? How can I end task with PID in Linux operating systems?