Forrest logo
back to the tshark tool

tshark:tldr:f0e77

tshark: Specify the format of captured output.
$ tshark -T ${select}
try on your machine

The command "tshark -T ${select}" is used to capture and analyze network traffic using the tshark command-line tool with the specified output format.

Here's a breakdown of the command:

  1. "tshark": It is a command-line utility provided by Wireshark, a widely used network protocol analyzer. It allows capturing and analyzing network traffic from various sources.

  2. "-T": This option is used to specify the output format for the captured network traffic. In the given command, "${select}" is used as a placeholder which should be replaced with a valid output format.

  3. "${select}": This is a placeholder indicating that you need to provide a specific output format. The actual value to be used here depends on the desired format. Some common options for the output format include:

    • "ps" or "psml" to format the output as PostScript.
    • "pdml" for Packet Details Markup Language (PDML) format.
    • "json" for JSON format.
    • "pdml" for Packet Details Markup Language (PDML) format.
    • "text" or "txt" to output the data in plain text format.

    So, when using the command, you need to replace "${select}" with the desired output format.

For example, if you want to output the captured network traffic in JSON format, the command would be: "tshark -T json"

Note that this command assumes that tshark is installed and accessible in the system's PATH environment variable. If not, you may need to provide the full path to the tshark executable.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the tshark tool