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.
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.
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.
top -o PID
If you use -o parameter you can list output any feature.
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.
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.
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.
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.