← 返回命令列表

Linux command

lsfd 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Example

lsfd

Example

lsfd -Q 'PID == [pid]'

Example

lsfd -Q "NAME == '[path/to/file]'"

Example

lsfd -p [pid]

Example

lsfd -i4

Example

lsfd -i6

Example

lsfd -o COMMAND,PID,TYPE,NAME

说明

lsfd lists information about file descriptors opened by running processes on Linux. It is a modern, Linux-specific replacement for lsof with better performance and filtering capabilities using a SQL-like query language. Part of util-linux.

参数

-p, --pid _PIDS_
Collect information only for specified processes (more efficient than -Q).
-Q, --filter _EXPR_
Filter output with expression (e.g. 'PID == 1234', "NAME == '/path'").
-l, --threads
List in threads level.
-i4
Show IPv4 sockets only.
-i6
Show IPv6 sockets only.
-o, --output _COLUMNS_
Specify output columns (use -H to list available columns).
-r, --raw
Use raw output format.
-J, --json
Output in JSON format.
-n, --noheadings
Suppress column headers.
-u, --notruncate
Do not truncate text in columns.
-H, --list-columns
List available output columns.
--summary=_WHEN_
Print summary information (only, append, or never).

FAQ

What is the lsfd command used for?

lsfd lists information about file descriptors opened by running processes on Linux. It is a modern, Linux-specific replacement for lsof with better performance and filtering capabilities using a SQL-like query language. Part of util-linux.

How do I run a basic lsfd example?

Run `lsfd` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -p, --pid _PIDS_ do in lsfd?

Collect information only for specified processes (more efficient than -Q).