How to List Processes in Linux

ps -aux toppstree...I.  TOP First Five Lines of StatisticsThe first five lines of the statistics area show overall system information.1. The first line is the task queue info, same as the output of the uptime  command:[root@localhost ~]# uptime 13:22:30 up 8 min,  4 users,  load average: 0.14, 0.38, 0.25Its contents are as follows:12:38:33 Current time up 50days System uptime, format: hours:minutes 1 user Number of currently logged-in users load average: 0.06, 0.60, 0.48 System load, i.e., the average length of the task queue. The three values are averages over the last 1, 5, and 15 minutes, respectively. 2. The second and third lines show process and CPU information.When there are multiple CPUs, this content may exceed two lines. Contents are as follows:Tasks: 29 total Total number of processes 1 running Number of running processes 28 sleeping Number of sleeping processes 0 stopped Number of stopped processes 0 zombie Number of zombie processes Cpu(s): 0.3% us Percentage of CPU time spent in user space 1.0% sy Percentage of CPU time spent in kernel space 0.0% ni Percentage of CPU time spent on user processes with altered priorities 98.7% id Percentage of idle CPU 0.0% wa Percentage of CPU time waiting for I/O 0.0% hi 0.0% si 3. The fourth and fifth lines show memory information. Contents are as follows:Mem: 191272k total Total physical memory 173656k used Total used physical memory 17616k free Total free memory 22052k buffers Amount of memory used as kernel buffers Swap: 192772k total Total swap space 0k used Total used swap space 192772k free Total free swap space 123988k cached Total cached swap space. Memory contents that were swapped out to the swap area and then swapped back into memory, but the used swap area hasn't been overwritten. This value is the size of these contents that already exist in memory within the swap area. When the corresponding memory is swapped out again, writing to the swap area may not be necessary.  Process Info Column Headers Meaning PID Process ID PPID Parent Process ID RUSER Real user name UID User ID of the process owner USER Username of the process owner GROUP Group name of the process owner TTY Name of the terminal starting the process. Processes not started from a terminal are shown as ? PR Priority NI Nice value. Negative values indicate high priority, positive values indicate low priority P Last CPU used, only meaningful in multi-CPU environments %CPU Percentage of CPU time used since the last update TIME Total CPU time used by the process, in seconds TIME+ Total CPU time used by the process, in 1/100ths of a second %MEM Percentage of physical memory used by the process VIRT Total virtual memory used by the process, in kb. VIRT=SWAP+RES SWAP Amount of the process's virtual memory that is swapped out, in kb. RES Amount of physical memory used by the process that is not swapped out, in kb. RES=CODE+DATA CODE Physical memory occupied by executable code, in kb DATA Physical memory occupied by parts other than executable code (data segment + stack), in kb SHR Shared memory size, in kb nFLT Number of page faults nDRT Number of pages modified since the last write. S Process state.            D=Uninterruptible sleep            R=Running            S=Sleeping   

Leave a Comment

Your email address will not be published.