How do I tell lsof I need to list only physical files (not sockets, not TCP/IP connections, only physical files)?
Just looked through some man pages, it appears you use the command:
This will list all open files in the / directory, which is everything on a linux filesystem. Just tested and it shows only REG and DIR.
1-999 limits it to files with a file handle number.
There might be a switch, but if you don't mind filtering it through grep, you could do
See the OUTPUT :: TYPE section of the man page