GPEN · Question #347
You want to create a binary log file using tcpdump. Which of the following commands will you use?
The correct answer is C. tcpdump -w. The tcpdump -w <filename> flag writes captured packets in raw (binary) PCAP format to a file instead of printing them to the screen. This binary file can later be read and analyzed with tcpdump -r or tools like Wireshark. The other flags do different things: -d dumps the…
Question
You want to create a binary log file using tcpdump. Which of the following commands will you use?
Options
- Atcpdump -B
- Btcpdump -dd
- Ctcpdump -w
- Dtcpdump -d
How the community answered
(50 responses)- A6% (3)
- B2% (1)
- C82% (41)
- D10% (5)
Explanation
The tcpdump -w <filename> flag writes captured packets in raw (binary) PCAP format to a file instead of printing them to the screen. This binary file can later be read and analyzed with tcpdump -r or tools like Wireshark. The other flags do different things: -d dumps the compiled packet-matching code in a human-readable form, -dd dumps that same code as a C program fragment, and -B sets the OS capture buffer size in KiB. Only -w produces the binary log file.
Topics
Community Discussion
No community discussion yet for this question.