For the reverse question, which Files are currently open by a given
process, we use the lsof command:
[choo@simey ~/haifux]$ /usr/sbin/lsof -p 1262
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
tcsh 1262 choo cwd DIR 3,6 4096 633934 /prog/choo/haifux
tcsh 1262 choo rtd DIR 3,1 1024 2 /
tcsh 1262 choo txt REG 3,1 288604 16273 /bin/tcsh
tcsh 1262 choo mem REG 3,1 85420 20367 /lib/ld-2.2.5.so
tcsh 1262 choo mem REG 3,3 57 33037
/usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES
tcsh 1262 choo mem REG 3,3 370 51080
/usr/lib/locale/en_US/LC_IDENTIFICATION
tcsh 1262 choo mem REG 3,3 28 52557
/usr/lib/locale/en_US/LC_MEASUREMENT
tcsh 1262 choo mem REG 3,3 64 112345
/usr/lib/locale/en_US/LC_TELEPHONE
tcsh 1262 choo mem REG 3,3 160 112347
/usr/lib/locale/en_US/LC_ADDRESS
tcsh 1262 choo mem REG 3,3 82 112346
/usr/lib/locale/en_US/LC_NAME
tcsh 1262 choo mem REG 3,3 39 52571
/usr/lib/locale/en_US/LC_PAPER
tcsh 1262 choo mem REG 3,3 291 52556
/usr/lib/locale/en_US/LC_MONETARY
tcsh 1262 choo mem REG 3,3 21499 83114
/usr/lib/locale/en_US/LC_COLLATE
tcsh 1262 choo mem REG 3,3 2456 51083
/usr/lib/locale/en_US/LC_TIME
tcsh 1262 choo mem REG 3,3 59 112348
/usr/lib/locale/en_US/LC_NUMERIC
tcsh 1262 choo mem REG 3,1 85262 20377 /lib/libnsl-2.2.5.so
tcsh 1262 choo mem REG 3,1 11832 20340 /lib/libtermcap.so.2.0.8
tcsh 1262 choo mem REG 3,1 22645 20374 /lib/libcrypt-2.2.5.so
tcsh 1262 choo mem REG 3,1 1343176 20372 /lib/libc-2.2.5.so
tcsh 1262 choo mem REG 3,3 173764 98443
/usr/lib/locale/he_IL/LC_CTYPE
tcsh 1262 choo 15u CHR 136,2 4 /dev/pts/2
tcsh 1262 choo 16u CHR 136,2 4 /dev/pts/2
tcsh 1262 choo 17u CHR 136,2 4 /dev/pts/2
tcsh 1262 choo 18u CHR 136,2 4 /dev/pts/2
tcsh 1262 choo 19u CHR 136,2 4 /dev/pts/2