Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".

Show all processes

Show all processes

To see all the processes, run the ps command with the "-a" option.
If you want to see the processes executed by the logged-in user, you can use the "-a" option without any arguments, but if you want to see which processes are being executed by other users, you can use the "-u" option as well.

root@Lion:~# ps -a
  PID TTY          TIME CMD
29939 pts/0    00:00:00 su
29940 pts/0    00:00:00 bash
30036 pts/0    00:00:00 su
30037 pts/0    00:00:00 bash
30040 pts/0    00:00:00 su
30041 pts/0    00:00:00 bash
30120 pts/0    00:00:00 su
30121 pts/0    00:00:00 bash
30124 pts/0    00:00:00 ps
root@Lion:~# ps -au
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root     11621  0.0  0.0   3784   464 tty1     Ss+   9月07   0:00 /sbin/agetty -o -p -- \u --noclea
nuy      29936  0.0  0.1   5824  4344 pts/0    Ss   10:13   0:00 -bash
root     29939  0.0  0.0   8108  3564 pts/0    S    10:13   0:00 su -
root     29940  0.0  0.1   5824  4336 pts/0    S    10:13   0:00 -bash
root     30036  0.0  0.0   7960  3240 pts/0    S    11:01   0:00 su -
root     30037  0.0  0.1   5824  4408 pts/0    S    11:01   0:00 -bash
root     30040  0.0  0.0   7960  3516 pts/0    S    11:01   0:00 su - nuy
nuy      30041  0.0  0.1   5824  4520 pts/0    S    11:01   0:00 -bash
root     30120  0.0  0.0   8108  3576 pts/0    S    11:14   0:00 su -
root     30121  0.1  0.1   5824  4388 pts/0    S    11:14   0:00 -bash
root     30125  0.0  0.0   8804  3040 pts/0    R+   11:15   0:00 ps -au       

Information to be displayed
PID:A number that is automatically assigned to each process
TTY:Control terminal running the process
STAT:state
・Field 1
R:executable
T:Stopping or tracing
D:Dormant and uninterruptible.
S:dormant
Z:zombie(Not deleted, but suspended)
・Field 2
W:swapped out(No resident pages)
・Field 3
N:positive nice value
TIME:CPU consumption time
COMMAND:Execute command

Copied title and URL