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 /home

List network connections of a process by PID

lsof -nPi -a -p <PID>