Sometimes, the user need to monitor the list of running processes in the Linux operating system and learn most detailed information on each one, or something specific. OS present in the built-in tools, allowing to carry out the task without any effort. Each tool is focused under your user and it opens up different possibilities. In this article we will cover two options, which can be useful in certain situations, and you will just have to choose the most suitable.
Going over the list of processes in Linux
Almost all popular distributions based on the Linux kernel, the list of processes can open and view using the same commands, tools. Therefore, we will not focus on separate assemblies, and take for example the latest version of Ubuntu. You will only execute the provided instructions to the whole procedure went smoothly and without difficulties.
Method 1: Terminal
Undoubtedly, the classic console operating systems on Linux plays a critical role in the interaction with the programs, files and other objects. All basic manipulation of the user produces through this app. Because from the beginning I would like to tell you about the output it through the Terminal. Notice we are only on one team, but consider the most popular and useful arguments.
psto just make sure it works and to see the view shows the data without using arguments.
ps-A(A must be upper case). After pressing Enter you will see the summary lines.
ps -Af. In the table you will see the UID of the user who started the process PID is a unique number, PPID — the parent process number, C is the amount of time the CPU percentage when the active process, STIME the time of activation, TTY room console, where he was made run, TIME — work, CMD — the command that started the process.
ps -fp PIDwhere PID — number of process.
ps-FA --sort pcpuallows you to put all the rows in the order of CPU load and
ps -Fe --sort rss— required RAM.
Above, we talked about the main arguments to command
ps, however, there are still other options, for example:
-H— displays a tree of processes;
-V— output versions;
-N— a select all processes except specified;
-S— displays only the command name.
For consideration of the method of viewing processes via built-in console we chose the command
top, since the second is limited by the window size and the overflow data is simply ignored, remaining newimagename.
Method 2: System monitor
Of course, the method of viewing the desired information through the console is daunting for some users, but it allows you to get acquainted with all the important parameters and apply the necessary filters. If you just want to view a list of running tools, apps, and take with them a number of interactions that will suit you integrated graphics solution “System monitor”.
Ways run this application you can read in our other article, clicking on the following link, and we proceed to the execution of the task.
Read more: how to launch System monitor in Linux
End, stop, or delete processes also occurs through this graphical application by clicking on the corresponding buttons. Novice users of such a solution seems more convenient than working in “Terminal”, but the development console will allow to obtain the desired information not only faster, but with lots of detail.