2025-03-14 21:59:59 -06:00
|
|
|
# lsfd
|
|
|
|
|
|
|
|
|
|
> List open files and the corresponding processes in Linux.
|
|
|
|
|
> More information: <https://manned.org/lsfd>.
|
|
|
|
|
|
|
|
|
|
- List all open file descriptors:
|
|
|
|
|
|
|
|
|
|
`lsfd`
|
|
|
|
|
|
|
|
|
|
- List all files kept open by a specific program:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`lsfd {{[-Q|--filter]}} 'PID == {{process_ID}}'`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Check what program has a specific file open:
|
|
|
|
|
|
2025-03-19 19:23:44 -06:00
|
|
|
`lsfd {{[-Q|--filter]}} "NAME == '{{/path/to/file}}'"`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List open IPv4 or IPv6 sockets:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`lsfd {{-i4|-i6}}`
|
2025-04-03 20:36:56 -06:00
|
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
|
|
`lsfd {{[-h|--help]}}`
|