Monday, January 29, 2018

File descriptor: To list open files in a machine

lsof -p <pid>
Lists open files for the process.


lsof | grep ‘(deleted)’
Lists the deleted open files

lsof -a +L1 *mountpoint*
Lists open files for the mount point (-a => and) (1=> below values which shows zero => unlinked)

Losf -I

Lists all open internet socket files

***

No comments:

Post a Comment