USRCPU: The CPU usage by the process while running in user mode.SYSCPU: The CPU usage by the process while system handling.The lower section lists currently running processes and contains the following categories: The heading section of the command output provides an overview of system resources, including process and performance-related statistics and memory, disk, and network usage. z: Change the output color to highlight running processes.r: Change the nice value (priority) of a process by providing the PID.k: Kill a process by providing the PID.d: Change the output refresh rate to a user-defined value (in seconds).While the top command is running, use the following options to interact with it or change the output format: COMMAND: The name of the command that started the process.S: The status of the process - R (running) or S (sleeping).SHR: The total shared memory used by the process.RES: The resident (physical) memory amount used by the process.VIRT: The virtual memory amount used by the process.NI: The nice value of the process, with negative numbers indicating higher priority.PR: The scheduling priority for the process.USER: The name of the user running the process.The top command output contains the following categories: The output of the top command updates in real time, with the three-second default refresh rate. -u: Define a user whose processes you want to list.u: Expand the output to include additional information, for example, CPU and memory usage.T: List all processes associated with this terminal.-j: Displays output in the jobs format.f: Displays process hierarchy as ASCII art.-deselect, -N: List all processes except those that fulfill a user-defined condition.
-d: List all processes except session leaders.-a: List all processes except session leaders (instances where the process ID is the same as the session ID) and processes not associated with a terminal.-A, -e: List all processes on the system.a: List all ruining processes for all users.The ps command uses the following syntax: ps įrequently used ps command options include: Unlike the other commands on this list, ps presents the output as a static list, not updated in real time. The ps Linux command creates a snapshot of currently running processes. List Running Processes in Linux by Using the ps Command You can also combine the ps command with the pgrep command to identify individual processes. To list currently running processes, use the ps, top, htop, and atop Linux commands. Note: Learn more about terminating Linux processes in our guide to killing processes in Linux.