tcpdump: Difference between revisions

From Leechfinger
Jump to navigationJump to search
Qais (talk | contribs)
No edit summary
Qais (talk | contribs)
No edit summary
Line 1: Line 1:
Tcpdump prints out a description of the contents of packets on a network interface that match the boolean expression.  
Tcpdump prints out a description of the contents of packets on a network interface that match the boolean expression. Many flags need root permissions to run.
=== Install ===
=== Install ===
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
Line 16: Line 16:
| -C || Example
| -C || Example
|}
|}
 
=== List all interfaces ===
<syntaxhighlight lang="bash">
# tcpdump -D
</syntaxhighlight>
[[Category:Commands]]
[[Category:Commands]]

Revision as of 15:56, 10 May 2025

Tcpdump prints out a description of the contents of packets on a network interface that match the boolean expression. Many flags need root permissions to run.

Install

# apt install tcpdump

Flags

Tcpdump flags
Flag Description
-D List all interfaces
-W Example
-C Example

List all interfaces

# tcpdump -D