Computer Tips - How can I see what files a process has open?

Date: 2010mar7 OS: Linux Q. How can I see what files a process has open? A. Here are two commands that do that:
ls -l /proc/<pid>/fd
lsof -p <pid>
where <pid> is the unique process id. Many processes will have special files stdin, stdout and stderr open.