I’m using the tcpdump command to capture traffic on the network interface eth0
tcpdump -Xvv -n -i eth0 -c 300 > captureFile.txt
in the shell appear the next message
tcpdump: listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
300 packets captured
302 packets received by filter
0 packets dropped by kernel
How i can do message don’t display in the command line???
Add 2>/dev/null at the end of the command line:
Tcpdump writes the message to standard error, and the > redirection works on standard out only.
If you want the message to appear in captureFile.txt, use:
For more information on redirection, see http://www.tldp.org/LDP/abs/html/io-redirection.html