ps

report a snapshot of the current processes.

To print the process tree.
copy
8
0
ps -ejHTo print the process tree.

details |

Result:

 PID  PGID   SID TTY          TIME CMD
    2     0     0 ?        00:00:00 kthreadd
    3     0     0 ?        00:00:00   migration/0
    4     0     0 ?        00:00:00   ksoftirqd/0
    5     0     0 ?        00:00:00   events/0
    6     0     0 ?        00:00:00   khelper
  110     0     0 ?        00:00:00   kblockd/0
  112     0     0 ?        00:00:00   kacpid
  113     0     0 ?        00:00:00   kacpi_notify
  245     0     0 ?        00:00:00   ata/0
  246     0     0 ?        00:00:00   ata_aux
  247     0     0 ?        00:00:00   ksuspend_usbd
  253     0     0 ?        00:00:00   khubd
  256     0     0 ?        00:00:00   kseriod
  295     0     0 ?        00:00:00   pdflush
  296     0     0 ?        00:00:00   pdflush
  297     0     0 ?        00:00:00   kswapd0
  341     0     0 ?        00:00:00   aio/0
  358     0     0 ?        00:00:00   nfsiod
  367     0     0 ?        00:00:00   jfsIO
  368     0     0 ?        00:00:00   jfsCommit
  369     0     0 ?        00:00:00   jfsSync
  378     0     0 ?        00:00:00   xfs_mru_cache
  379     0     0 ?        00:00:00   xfslogd/0
  380     0     0 ?        00:00:00   xfsdatad/0
  381     0     0 ?        00:00:00   gfs2_scand
  382     0     0 ?        00:00:00   glock_workqueue
 1148     0     0 ?        00:00:00   scsi_tgtd/0
 1162     0     0 ?        00:00:00   iscsi_eh
 1194     0     0 ?        00:00:00   scsi_eh_0
 1275     0     0 ?        00:00:00   exec-osm/0
 1281     0     0 ?        00:00:00   block-osm/0
 1288     0     0 ?        00:00:00   khpsbpkt
 1335     0     0 ?        00:00:00   kstriped
 1337     0     0 ?        00:00:00   ksnapd
 1343     0     0 ?        00:00:00   rpciod/0
 1350     0     0 ?        00:00:00   kjournald
 1816     0     0 ?        00:00:00   kgameportd
 1844     0     0 ?        00:00:00   kpsmoused
 2662     0     0 ?        00:00:00   kjournald
 2663     0     0 ?        00:00:00   kjournald
 2664     0     0 ?        00:00:00   kjournald
 2669     0     0 ?        00:00:00   vmhgfs
 3243     0     0 ?        00:00:00   vmmemctl
    1     1     1 ?        00:00:04 init
 1404  1404  1404 ?        00:00:00   udevd
 2787  2787  2787 ?        00:00:00   syslogd
 2791  2791  2791 ?        00:00:00   klogd
 2840  2840  2840 ?        00:00:00   dhcpcd
 2859  2859  2859 ?        00:00:00   dhcpcd
 2921  2921  2921 ?        00:00:00   inetd
 2928  2928  2928 ?        00:00:00   sshd
 3430  3430  3430 ?        00:00:00     sshd
 3432  3430  3430 ?        00:00:00       sshd
 3433  3433  3433 pts/0    00:00:00         bash
 3619  3619  3433 pts/0    00:00:00           bash
 6345  6345  3433 pts/0    00:00:00             ps
 3548  3548  3548 ?        00:00:00     sshd
 3561  3548  3548 ?        00:00:00       sshd
 3562  3562  3562 pts/1    00:00:00         bash
 3575  3575  3562 pts/1    00:00:00           mysql
 2935  2935  2935 ?        00:00:00   acpid
 2946  2946  2946 ?        00:00:00   dbus-daemon
 2951  2951  2951 ?        00:00:00   hald
 2952  2951  2951 ?        00:00:00     hald-runner
 2986  2951  2951 ?        00:00:00       hald-addon-inpu
 2989  2951  2951 ?        00:00:00       hald-addon-stor
 2992  2951  2951 ?        00:00:00       hald-addon-acpi
 3000  2951  2951 ?        00:00:00       hald-addon-stor
 3011  3010  3010 ?        00:00:00   crond
 3013  3013  3013 ?        00:00:00   atd
 3043  2692  2692 ?        00:00:00   mysqld_safe
 3072  2692  2692 ?        00:00:01     mysqld
 3083  3083  3083 ?        00:00:00   httpd
 3103  3083  3083 ?        00:00:00     httpd
 3104  3083  3083 ?        00:00:00     httpd
 3106  3083  3083 ?        00:00:00     httpd
 3107  3083  3083 ?        00:00:00     httpd
 3108  3083  3083 ?        00:00:00     httpd
 3594  3083  3083 ?        00:00:00     httpd
 3098  3098  3098 ?        00:00:00   svnserve
 3101  3101  3101 ?        00:00:00   gpm
 3353  3353  3353 ?        00:00:01   vmware-guestd
 3397  3397  3397 ?        00:00:00   tpvmlp
 3408  3408  3408 tty1     00:00:00   agetty
 3409  3409  3409 tty2     00:00:00   agetty
 3410  3410  3410 tty3     00:00:00   agetty
 3411  3411  3411 tty4     00:00:00   agetty
 3412  3412  3412 tty5     00:00:00   agetty
 3413  3413  3413 tty6     00:00:00   agetty