Update cheatsheets

This commit is contained in:
ivuorinen
2024-12-21 00:17:09 +00:00
parent 993939500e
commit 212b0d47b3
13 changed files with 266 additions and 16 deletions

25
tldr/linux/lsfd Normal file
View File

@@ -0,0 +1,25 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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:
`lsfd -Q 'PID == {{process_ID}}'`
- Check what program has a specific file open:
`lsfd -Q "NAME == '{{/path/to/file}}'"`
- List open IPv4 or IPv6 sockets:
`lsfd -i{{4|6}}`