CAPTYPE(1)

πŸ’… CAPTYPE(1) β€” like, the manual page, bestie ✨

okay so this is captype from section 1 of the manual (that's the "user commands" girlies, iykyk), and honestly? she's a little icon. let's get into it πŸŽ€


✨ NAME ✨

captype β€” prints the types of capture files. that's it. that's her whole job. and she ATE πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

captype <infile> ...
captype -h|--help
captype -v|--version

🌸 DESCRIPTION 🌸

so captype is this program that opens one or more capture files and prints the capture file type of each <infile>. literally just vibes and file type detection, no cap πŸ’–

here's the tea: captype is able to detect and read the same capture files that are supported by Wireshark. and the input files don't need a specific filename extension β€” bestie, the file format and an optional gzip, zstd or lz4 compression will be automatically detected. she just knows πŸ”₯

near the beginning of the DESCRIPTION section of wireshark(1) or at https://www.wireshark.org/docs/man-pages/wireshark.html there's a detailed description of the way Wireshark handles this β€” and captype handles it the exact same way. same energy, different program 🫢


πŸ‘‘ OPTIONS πŸ‘‘

  • -h|--help β€” print the version number and options and exit. a little "hi bestie, here's what I do" moment πŸ’«
  • -v|--version β€” print the full version information and exit. the full ✨lore✨ drop.

🧚 DIAGNOSTIC OPTIONS 🧚

this is the nerdy section and honestly it's giving main character energy πŸ’œ

  • --log-level <level> β€” set the active log level. supported levels, in lowest to highest order, are "noisy", "debug", "info", "message", "warning", "critical", and "error". messages at each level and higher will be printed β€” for example, "warning" prints "warning", "critical", and "error" messages, and "noisy" prints all messages. levels are case insensitive 🌈
  • --log-fatal <level> β€” abort the program if any messages are logged at the specified level or higher. for example, "warning" aborts on any "warning", "critical", or "error" messages. she said "I'm not doing this today" πŸ’€
  • --log-fatal-count <count> β€” the amount of fatal log messages which may pass before the program is aborted. like a little patience meter πŸ“
  • --log-domains <list> β€” only print messages for the specified log domains, e.g. "GUI,Epan,sshdump". list of domains must be comma-separated. can be negated with "!" as the first character (inverts the match) πŸ™ˆ
  • --log-debug <list> β€” force the specified domains to log at the "debug" level. list of domains must be comma-separated. can be negated with "!" as the first character (inverts the match) πŸ”
  • --log-noisy <list> β€” force the specified domains to log at the "noisy" level. list of domains must be comma-separated. can be negated with "!" as the first character (inverts the match) πŸ“£
  • --log-fatal-domains <list> β€” abort the program if any messages are logged for the specified log domains. list of domains must be comma-separated. no negotiation, periodt πŸ’…
  • --log-file <path> β€” write log messages and stderr output to the specified file. everything goes in the group chat (the file) 🫢

πŸ”— SEE ALSO πŸ”—

pcap(3), wireshark(1), mergecap(1), editcap(1), tshark(1), dumpcap(1), capinfos(1), pcap-filter(7) or tcpdump(8)

the whole friend group honestly πŸ’–


πŸ“ NOTES πŸ“

captype is part of the Wireshark distribution. the latest version of Wireshark can be found at https://www.wireshark.org 🌐

HTML versions of the Wireshark project man pages are available at https://www.wireshark.org/docs/man-pages ✨


⭐ AUTHORS ⭐

Original Author

Ian Schorr <ian[AT]ianschorr.com>

Contributors

Gerald Combs <gerald[AT]wireshark.org> Jim Young <jyoung[AT]gsu.edu>


and that's the whole page, bestie πŸŽ€ this version is from the Wireshark distribution, dated 2026-10-08 β€” so go forth, run captype, and slay your file type detection journey πŸ’œπŸ¦‹βœ¨

πŸ“¦ where this page comes from