How do I tell lsof I need to list only physical files (not sockets, not TCP/IP connections, only physical files)?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
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. More examples:
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 |
|||||||||
|