![linux list processes linux list processes](https://linuxx.info/wp-content/uploads/2020/06/80f1573674f70262fe3737b1a4f3787d.png)
The ps command offers a few different options to control the output format. CMD – The final value represents the command used to start this process.TIME – Using this value, you can tell how much CPU time this process has consumed since it first started running.TTY – This value represents the terminal used to initiate this process.You can use this ID for various tasks, including killing the process or changing its nice value. PID – This is the process ID given to the process when it was started.Now that we know what data this command returns let us quickly explore each value. PID TTY TIME CMDĨ933 pts/1 00:00:00 ps Headers from the ps Command Running this tool within a fresh terminal will return a minimal result, as shown below. Additionally, it will limit itself to processes that were started within the current terminal session.īy default, the tool will only provide simple information that we will explore shortly. When used this way, the utility will only search for processes belonging to the user that ran the command. The simplest way to use the ps command is not to utilize any options when running it. By default, it will provide some basic information about processes belonging to the current user and were run within the current terminal session. You do not have to use the “ ” parameter to use this utility. For example, you can easily select the processes you get information from and control what information is returned to you. The “ ” parameter allows you to control the results of the ps command. The syntax for the ps command is straightforward thanks to it being entirely controlled through its options parameter.īelow is the syntax you will need to follow when using the ps utility. Example of Listing Processes by Terminal.Viewing Processes Started By a Specific Terminal.Selecting Processes Using Multiple Parent Process IDs.Selecting Processes Using a Single Parent Process IDs.Example of Selecting Processes Using the Parent Process ID.Example of Selecting Processes by their ID.Using the ps Command to View Processes by ID.Example of Selecting a Process Based on Command Name.Selecting Processes Based on Their Command Name.Example of Selecting Processes Based on Their Real Group ID.
![linux list processes linux list processes](https://sgp1.digitaloceanspaces.com/ffh-space-01/9to5answer/uploads/post/avatar/482975/template_how-to-use-linux-software-watchdog20220614-1532174-160wbkq.jpg)
![linux list processes linux list processes](https://dwaves.de/wp-content/uploads/2017/05/systemd-overview-utilities-daemons-targets-core-libraries-kernel.png)