This is an example of the lsfd program. By default, we list processes that we own with their file descriptor number and path, $ lsfd PID FD PATH 2213 0 /devices/pseudo/pts@0:11 2213 1 /devices/pseudo/pts@0:11 2213 2 /devices/pseudo/pts@0:11 2213 255 /devices/pseudo/pts@0:11 2213 3 /var/run/name_service_door 2222 0 /devices/pseudo/pts@0:11 2222 1 /devices/pseudo/pts@0:11 2222 10 2222 11 /devices/pseudo/random@0:urandom [...] A -l option will also list the name of the program, $ lsfd -l PID COMM FD PATH 2213 bash 0 /devices/pseudo/pts@0:11 2213 bash 1 /devices/pseudo/pts@0:11 2213 bash 2 /devices/pseudo/pts@0:11 2213 bash 255 /devices/pseudo/pts@0:11 2213 bash 3 /var/run/name_service_door 2222 gnome-termin 0 /devices/pseudo/pts@0:11 2222 gnome-termin 1 /devices/pseudo/pts@0:11 2222 gnome-termin 10 2222 gnome-termin 11 /devices/pseudo/random@0:urandom [...] When run as root, all processes can be viewed, # lsfd -l PID COMM FD PATH 1 init 0 /etc/initpipe 1 init 253 /system/contract/process/pbundle 1 init 254 /system/contract/process/template 1 init 255 /system/contract/process/template 101 picld 0 /devices/pseudo/mm@0:null 101 picld 1 /devices/pseudo/mm@0:null 101 picld 2 /devices/pseudo/mm@0:null 101 picld 3 101 picld 4 103 powerd 0 /devices/pseudo/kstat@0:kstat [...] lsfd may be useful to discover which process has a particular file open, # lsfd -l | grep messages 286 syslogd 6 /var/adm/messages no suprises there... or for generally learning about the system, # lsfd -l | grep /var/log 286 syslogd 7 /var/log/syslog 390 Xorg 0 /var/log/Xorg.0.log 438 snmpd 3 /var/log/snmpd.log fair enough... and discovering new things about the system, # lsfd -l | grep /var/adm 196 utmpd 3 /var/adm/wtmpx 2227 gnome-pty-he 6 /var/adm/utmpx 2227 gnome-pty-he 7 /var/adm/utmpx 286 syslogd 6 /var/adm/messages 412 vold 3 /var/adm/vold.log huh? what's gnome-pty-he, and why does it have /var/adm/utmpx open? # ps -ef | grep gnome-pty brendan 2227 2222 0 03:37:09 pts/11 0:00 gnome-pty-helper # # ptree 2227 382 /usr/dt/bin/dtlogin -daemon 440 /usr/dt/bin/dtlogin -daemon 461 /bin/ksh /usr/dt/bin/Xsession 531 /usr/dt/bin/sdt_shell -c unset DT; DISPLAY=:0; 534 -bash -c unset DT; DISPLAY=:0; /usr/dt/bin/d 547 /usr/dt/bin/dtsession 556 /usr/dt/bin/dtterm -session dtKraOjb 2213 /bin/bash 2222 gnome-terminal 2227 gnome-pty-helper # # man gnome-pty-helper No manual entry for gnome-pty-helper. # # grep gnome-pty-helper /var/sadm/install/contents /usr/lib/gnome-pty-helper f none 0711 root other 15416 45967 1103227021 SUNWgnome-terminal I don't know (yet) what this process is for - I discovered it while writing this examples document. The point was to illustrate that lsfd may identify a few things about how the system works you were previously unaware of - so this example is exactly that.