How do I redirect a tcpdump output to a file?
Answer
Programs should by default write to stdout. Redirection to a file is already provided by the shell constructs.
…
What it does:
Answer
Programs should by default write to stdout. Redirection to a file is already provided by the shell constructs.
…
What it does:
- -w – tells tcpdump to write binary data to stdout.
- tee writes that binary data to a file AND to its own stdout.
- -r – tells the second tcpdump to get its data from its stdin.