How do I capture a tcpdump file in Linux?
Answer
Use the “ifconfig” command to list all the interfaces. For example, the following command will
capture
the packets of “eth0” interface. The “-w” option lets you write the output of
tcpdump
to a
file
which you can save for further analysis. The “-r” option lets you
read
the output of a
file
.
Answer
Use the “ifconfig” command to list all the interfaces. For example, the following command will
capture
the packets of “eth0” interface. The “-w” option lets you write the output of
tcpdump
to a
file
which you can save for further analysis. The “-r” option lets you
read
the output of a
file
.