From 880730fe3e774a81b05484b811bf0f93b236ccc1 Mon Sep 17 00:00:00 2001 From: Managor <42655600+Managor@users.noreply.github.com> Date: Fri, 20 Dec 2024 20:41:41 +0200 Subject: [PATCH] lsfd: add page (#15284) Co-authored-by: Juri Dispan Co-authored-by: K.B.Dharun Krishna --- pages/linux/lsfd.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 pages/linux/lsfd.md diff --git a/pages/linux/lsfd.md b/pages/linux/lsfd.md new file mode 100644 index 000000000..97063344d --- /dev/null +++ b/pages/linux/lsfd.md @@ -0,0 +1,20 @@ +# lsfd + +> List open files and the corresponding processes in Linux. +> More information: . + +- 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}}`