System related commands

Getting Process Information

Print lsof with headline and all lines relevant for process <pid>:

lsof | ( grep -m 1 PID ; awk ' $2 == <pid> {print $0}' ) | less