← 返回命令列表

Linux command

trawl 命令

文本

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

常用示例

Show network connections

trawl

Show all connections

trawl -a

Filter by process

trawl -p [pid]

Show listening only

trawl -l

Watch mode

trawl -w

说明

trawl is a network connection viewer that displays information about active TCP connections on a system. It shows details including local and remote addresses, connection state, and the processes associated with each connection. The watch mode provides continuous updates, refreshing the connection list at regular intervals for real-time monitoring. Connections can be filtered by process ID to focus on a specific application's network activity, and the listening-only mode shows sockets waiting for incoming connections. Output is designed to be clean and readable, with options for numeric display to avoid DNS resolution delays.

参数

-a
All connections.
-l
Listening only.
-p _PID_
Filter by process.
-w
Watch mode.
-n
Numeric output.
--help
Show help.

FAQ

What is the trawl command used for?

trawl is a network connection viewer that displays information about active TCP connections on a system. It shows details including local and remote addresses, connection state, and the processes associated with each connection. The watch mode provides continuous updates, refreshing the connection list at regular intervals for real-time monitoring. Connections can be filtered by process ID to focus on a specific application's network activity, and the listening-only mode shows sockets waiting for incoming connections. Output is designed to be clean and readable, with options for numeric display to avoid DNS resolution delays.

How do I run a basic trawl example?

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

What does -a do in trawl?

All connections.