tcpdump: Difference between revisions
From Leechfinger
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 10: | Line 10: | ||
! Flag !! Description | ! Flag !! Description | ||
|- | |- | ||
| -D || List all interfaces | | -D || List all interfaces. | ||
|- | |- | ||
| - | | -C || Max file size to save, all files will have subsequent numbers. | ||
|- | |- | ||
| - | | -W || Limit the limit the number of files, use with -C. | ||
|} | |} | ||
=== List all interfaces === | === List all interfaces === | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
# tcpdump -D | # tcpdump -D | ||
</syntaxhighlight> | |||
=== File size and file limits === | |||
<syntaxhighlight lang="bash"> | |||
# tcpdump -C300 -W4 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Commands]] | [[Category:Commands]] |
Revision as of 16:16, 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
Flag | Description |
---|---|
-D | List all interfaces. |
-C | Max file size to save, all files will have subsequent numbers. |
-W | Limit the limit the number of files, use with -C. |
List all interfaces
# tcpdump -D
File size and file limits
# tcpdump -C300 -W4