Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash list process

# List all Processes
/bin/ps aux
# Output
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0   1256   724 ?        Sl   Oct20   0:01 /init
root     13617  0.0  0.0   1256   436 ?        Ss   Oct22   0:00 /init
root     13618  0.0  0.0   1256   436 ?        S    Oct22   0:00 /init
root     17992  0.0  0.0   1256   436 ?        Ss   18:20   0:00 /init
root     17993  0.0  0.0   1256   436 ?        R    18:20   0:00 /init
potter   17994  1.4  0.0  13500  9140 pts/0    Ss   18:20   0:00 -bash
potter   18136  0.0  0.0   8900  3200 pts/0    R+   18:20   0:00 /bin/ps aux
Source by man7.org #
 
PREVIOUS NEXT
Tagged: #bash #list #process
ADD COMMENT
Topic
Name
9+9 =