1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 16:55:25 +02:00

tcpdump: Add {{}} token to command arguments.

This commit is contained in:
Ming Chen 2017-12-04 13:43:33 -08:00 committed by GitHub
parent eb7224387b
commit 1ba5e9aa15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -20,7 +20,7 @@
- Capture the traffic from a specific interface, source, destination and destination port:
`tcpdump -i {{eth0}} src {{192.168.1.1}} and dst {{192.168.1.2}} and dst port 80`
`tcpdump -i {{eth0}} src {{192.168.1.1}} and dst {{192.168.1.2}} and dst port {{80}}`
- Capture the traffic of a network:
@ -28,8 +28,8 @@
- Capture all traffic except traffic over port 22 and save to a dump file:
`tcpdump -w dumpfile.pcap not port 22`
`tcpdump -w {{dumpfile.pcap}} not port {{22}}`
- Read from an exist dump file:
- Read from a given dump file:
`tcpdump -r dumpfile.pcap`
`tcpdump -r {{dumpfile.pcap}}`