System Administration Guide: Advanced Administration

Example—Displaying Information About Processes

The following example shows how to use process tool commands to display more information about an lpsched process.


# pgrep lpsched 1
213
# pwdx 213 2
213:    /
# ptree 213 3
213   /usr/lib/lpsched
# pfiles 213 4
213:    /usr/lib/lpsched
  Current rlimit: 4096 file descriptors
   0: S_IFIFO mode:0000 dev:270,0 ino:67 uid:0 gid:0 size:0
      O_RDWR
   1: S_IFIFO mode:0000 dev:270,0 ino:67 uid:0 gid:0 size:0
      O_RDWR
   3: S_IFCHR mode:0666 dev:136,0 ino:35882 uid:0 gid:3 rdev:21,0
      O_WRONLY FD_CLOEXEC
   4: S_IFDOOR mode:0444 dev:275,0 ino:18526 uid:0 gid:0 size:0
      O_RDONLY|O_LARGEFILE FD_CLOEXEC  door to nscd[208]
   5: S_IFREG mode:0664 dev:136,0 ino:64648 uid:71 gid:8 size:0
      O_WRONLY
  1. Obtains the process identification number for lpsched

  2. Displays the current working directory for lpsched

  3. Displays the process tree that containslpsched

  4. Displays fstat and fcntl information