Linux Process Management

Screenshot from 2018 11 08 20 51 35 - Linux Process Management

Today, I will talk about Linux Process Management. We will find the solution to questions like  “How to Show All Process Simultaneously on Terminal ?”, “How to Kill Any Process on Terminal ?”.

I want to talking about top command but firstly I will talk about ps command. Summarize ps command is show all process in that time.

Screenshot from 2018 11 08 20 14 31 300x62 - Linux Process Management

We will examine above photo;

Firstly we entered ps command on terminal then terminal talking bash shell and it says “take this command and give central process unit” then central process unit take ps command and handle it. you will see process’s above photo.

If I will talking about top command, summarize, top command list all process simultaneously. You will see example output on the following photo.

Screenshot from 2018 11 08 20 34 39 300x171 - Linux Process Management

You can see all features this table for example How many users active ?, How much memory is free ?, How long is the system is open ?, CPU percentage how many are used ?, PID (Process ID), Command and Users.

NOTE: If you want to change “which data is listing ?”, you can press “f” and change it.

If you want to learn more information about top command you can look man page.

If you use -o parameter you can list output any feature.

Screenshot from 2018 11 08 20 51 35 300x171 - Linux Process Management

In the above photo you will see sorted by PID (Process ID) output.

NOTE: If you enter “ps aux” command you can see output like top command output.

Screenshot from 2018 11 08 21 10 41 300x43 - Linux Process Management

Above usage is works catch any process in all process. You can see example above photo. If you want to kill any process you can use kill -9 command this command works send kill signal any process. Just you enter PID (Process ID) after kill -9 command it will be enough.

Screenshot from 2018 11 08 21 12 45 300x57 - Linux Process Management

Example kill -9 command. Other kill command is pkill command it works kill any process like kill -9 command. The only difference between them you will enter process name after pkill command.

Screenshot from 2018 11 08 21 16 35 300x63 - Linux Process Management

Example pkill command. Finally If I will talking about killall command it works kill all process.

NOTE: Please be careful about process because if you kill some OS (Operating System) Process it is work false.

I was talked about Linux Process Management, I hope this article is useful.