1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-25 23:35:26 +02:00

lsfd: add longform options (#15291)

Update lsfd.md
This commit is contained in:
Managor 2024-12-23 19:10:31 +02:00 committed by GitHub
parent 27b7e13497
commit 2a19d8db59
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,11 +9,11 @@
- List all files kept open by a specific program:
`lsfd -Q 'PID == {{process_ID}}'`
`lsfd {{-Q|--filter}} 'PID == {{process_ID}}'`
- Check what program has a specific file open:
`lsfd -Q "NAME == '{{/path/to/file}}'"`
`lsfd {{-Q|--filter}} "NAME == '{{/path/to/file}}'"`
- List open IPv4 or IPv6 sockets: