2024-12-20 20:41:41 +02: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-07 13:48:24 +02:00
|
|
|
`lsfd {{[-Q|--filter]}} 'PID == {{process_ID}}'`
|
2024-12-20 20:41:41 +02:00
|
|
|
|
|
|
|
- Check what program has a specific file open:
|
|
|
|
|
2025-03-07 13:48:24 +02:00
|
|
|
`lsfd {{[-Q|--filter]}} "NAME == '{{/path/to/file}}'"`
|
2024-12-20 20:41:41 +02:00
|
|
|
|
|
|
|
- List open IPv4 or IPv6 sockets:
|
|
|
|
|
2025-04-20 00:21:53 +03:00
|
|
|
`lsfd {{-i4|-i6}}`
|
2025-03-26 00:36:41 +02:00
|
|
|
|
|
|
|
- Display help:
|
|
|
|
|
|
|
|
`lsfd {{[-h|--help]}}`
|