ps

report a snapshot of the current processes.

Print the process tree in BSD form.
copy
3
1
ps axjfPrint the process tree in BSD form.

details |

Result:

 PPID   PID  PGID   SID TTY      TPGID STAT   UID   TIME COMMAND
    0     2     0     0 ?           -1 S<       0   0:00 [kthreadd]
    2     3     0     0 ?           -1 S<       0   0:00  \_ [migration/0]
    2     4     0     0 ?           -1 S<       0   0:00  \_ [ksoftirqd/0]
    2     5     0     0 ?           -1 S<       0   0:00  \_ [events/0]
    2     6     0     0 ?           -1 S<       0   0:00  \_ [khelper]
    2   110     0     0 ?           -1 S<       0   0:00  \_ [kblockd/0]
    2   112     0     0 ?           -1 S<       0   0:00  \_ [kacpid]
    2   113     0     0 ?           -1 S<       0   0:00  \_ [kacpi_notify]
    2   245     0     0 ?           -1 S<       0   0:00  \_ [ata/0]
    2   246     0     0 ?           -1 S<       0   0:00  \_ [ata_aux]
    2   247     0     0 ?           -1 S<       0   0:00  \_ [ksuspend_usbd]
    2   253     0     0 ?           -1 S<       0   0:00  \_ [khubd]
    2   256     0     0 ?           -1 S<       0   0:00  \_ [kseriod]
    2   295     0     0 ?           -1 S        0   0:00  \_ [pdflush]
    2   296     0     0 ?           -1 S        0   0:00  \_ [pdflush]
    2   297     0     0 ?           -1 S<       0   0:00  \_ [kswapd0]
    2   341     0     0 ?           -1 S<       0   0:00  \_ [aio/0]
    2   358     0     0 ?           -1 S<       0   0:00  \_ [nfsiod]
    2   367     0     0 ?           -1 S<       0   0:00  \_ [jfsIO]
    2   368     0     0 ?           -1 S<       0   0:00  \_ [jfsCommit]
    2   369     0     0 ?           -1 S<       0   0:00  \_ [jfsSync]
    2   378     0     0 ?           -1 S<       0   0:00  \_ [xfs_mru_cache]
    2   379     0     0 ?           -1 S<       0   0:00  \_ [xfslogd/0]
    2   380     0     0 ?           -1 S<       0   0:00  \_ [xfsdatad/0]
    2   381     0     0 ?           -1 S<       0   0:00  \_ [gfs2_scand]
    2   382     0     0 ?           -1 S<       0   0:00  \_ [glock_workqueue]
    2  1148     0     0 ?           -1 S<       0   0:00  \_ [scsi_tgtd/0]
    2  1162     0     0 ?           -1 S<       0   0:00  \_ [iscsi_eh]
    2  1194     0     0 ?           -1 S<       0   0:00  \_ [scsi_eh_0]
    2  1275     0     0 ?           -1 S<       0   0:00  \_ [exec-osm/0]
    2  1281     0     0 ?           -1 S<       0   0:00  \_ [block-osm/0]
    2  1288     0     0 ?           -1 S<       0   0:00  \_ [khpsbpkt]
    2  1335     0     0 ?           -1 S<       0   0:00  \_ [kstriped]
    2  1337     0     0 ?           -1 S<       0   0:00  \_ [ksnapd]
    2  1343     0     0 ?           -1 S<       0   0:00  \_ [rpciod/0]
    2  1350     0     0 ?           -1 R<       0   0:00  \_ [kjournald]
    2  1816     0     0 ?           -1 S<       0   0:00  \_ [kgameportd]
    2  1844     0     0 ?           -1 S<       0   0:00  \_ [kpsmoused]
    2  2662     0     0 ?           -1 S<       0   0:00  \_ [kjournald]
    2  2663     0     0 ?           -1 S<       0   0:00  \_ [kjournald]
    2  2664     0     0 ?           -1 S<       0   0:00  \_ [kjournald]
    2  2669     0     0 ?           -1 S<       0   0:00  \_ [vmhgfs]
    2  3243     0     0 ?           -1 S<       0   0:00  \_ [vmmemctl]
    0     1     1     1 ?           -1 Ss       0   0:04 init [3]  
    1  1404  1404  1404 ?           -1 S<s      0   0:00 /sbin/udevd --daemon
    1  2787  2787  2787 ?           -1 Ss       0   0:00 /usr/sbin/syslogd
    1  2791  2791  2791 ?           -1 Ss       0   0:00 /usr/sbin/klogd -c 3 -x
    1  2840  2840  2840 ?           -1 Ss       0   0:00 /sbin/dhcpcd -d -t 30 eth0
    1  2859  2859  2859 ?           -1 Ss       0   0:00 /sbin/dhcpcd -d -t 30 eth1
    1  2921  2921  2921 ?           -1 Ss       0   0:00 /usr/sbin/inetd
    1  2928  2928  2928 ?           -1 Ss       0   0:00 /usr/sbin/sshd
 2928  3430  3430  3430 ?           -1 Ss       0   0:00  \_ sshd: web [priv] 
 3430  3432  3430  3430 ?           -1 S     1000   0:00  |   \_ sshd: web@pts/0  
 3432  3433  3433  3433 pts/0     6384 Ss    1000   0:00  |       \_ -bash
 3433  3619  3619  3433 pts/0     6384 R        0   0:00  |           \_ bash
 3619  6384  6384  3433 pts/0     6384 R+       0   0:00  |               \_ ps axjf
 2928  3548  3548  3548 ?           -1 Ss       0   0:00  \_ sshd: web [priv] 
 3548  3561  3548  3548 ?           -1 S     1000   0:00      \_ sshd: web@pts/1  
 3561  3562  3562  3562 pts/1     3575 Ss    1000   0:00          \_ -bash
    1  2935  2935  2935 ?           -1 Ss       0   0:00 /usr/sbin/acpid
    1  2946  2946  2946 ?           -1 Ss      81   0:00 /usr/bin/dbus-daemon --system
    1  2951  2951  2951 ?           -1 Ss      82   0:00 /usr/sbin/hald --daemon=yes
 2951  2952  2951  2951 ?           -1 S        0   0:00  \_ hald-runner
 2952  2986  2951  2951 ?           -1 S        0   0:00      \_ hald-addon-input: Listening on /dev/input/event3 /dev/input/event2 /dev/input/event1
 2952  2989  2951  2951 ?           -1 S        0   0:01      \_ hald-addon-storage: polling /dev/hda (every 2 sec)
 2952  2992  2951  2951 ?           -1 S       82   0:00      \_ hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
 2952  3000  2951  2951 ?           -1 S        0   0:00      \_ hald-addon-storage: no polling on /dev/fd0 because it is explicitly disabled
    1  3011  3010  3010 ?           -1 S        0   0:00 /usr/sbin/crond -l10
    1  3013  3013  3013 ?           -1 Ss       2   0:00 /usr/sbin/atd -b 15 -l 1
    1  3083  3083  3083 ?           -1 Ss       0   0:00 /usr/sbin/httpd -k start
 3083  3103  3083  3083 ?           -1 S       80   0:00  \_ /usr/sbin/httpd -k start
 3083  3104  3083  3083 ?           -1 S       80   0:00  \_ /usr/sbin/httpd -k start
 3083  3106  3083  3083 ?           -1 S       80   0:00  \_ /usr/sbin/httpd -k start
 3083  3107  3083  3083 ?           -1 S       80   0:00  \_ /usr/sbin/httpd -k start
 3083  3108  3083  3083 ?           -1 S       80   0:00  \_ /usr/sbin/httpd -k start
 3083  3594  3083  3083 ?           -1 S       80   0:00  \_ /usr/sbin/httpd -k start
    1  3098  3098  3098 ?           -1 Ss       0   0:00 /usr/bin/svnserve -r /export/svn -d
    1  3101  3101  3101 ?           -1 Ss       0   0:00 /usr/sbin/gpm -m /dev/mouse -t imps2
    1  3353  3353  3353 ?           -1 Ss       0   0:01 /usr/lib/vmware-tools/sbin32/vmware-guestd --background /var/run/vmware-guestd.pid
    1  3397  3397  3397 ?           -1 Ss       0   0:00 tpvmlpd
    1  3408  3408  3408 tty1      3408 Ss+      0   0:00 /sbin/agetty 38400 tty1 linux
    1  3409  3409  3409 tty2      3409 Ss+      0   0:00 /sbin/agetty 38400 tty2 linux
    1  3410  3410  3410 tty3      3410 Ss+      0   0:00 /sbin/agetty 38400 tty3 linux
    1  3411  3411  3411 tty4      3411 Ss+      0   0:00 /sbin/agetty 38400 tty4 linux
    1  3412  3412  3412 tty5      3412 Ss+      0   0:00 /sbin/agetty 38400 tty5 linux
    1  3413  3413  3413 tty6      3413 Ss+      0   0:00 /sbin/agetty 38400 tty6 linux