List open files and sockets. On FreeBSD, use procstat instead.
List deleted files
# For all filesystems
lsof +L1
# For the filesystem at mountpoint /home
lsof +aL1 /homeList network connections of a process by PID
lsof -nPi -a -p <PID>List open files and sockets. On FreeBSD, use procstat instead.
# For all filesystems
lsof +L1
# For the filesystem at mountpoint /home
lsof +aL1 /homelsof -nPi -a -p <PID>