If you work with network traffic analysis, this short tutorial on TShark's autostop duration option is worth a watch. TShark, the command-line counterpart to Wireshark, gives network admins and security analysts a powerful way to capture packets without needing the full graphical interface — ideal for headless servers and remote environments. This video walks through the `-a duration` flag, which tells TShark to automatically stop a packet capture once a specified number of seconds has elapsed, saving you from having to manually interrupt long-running captures.
The autostop duration parameter is one of several capture-control options available in TShark, alongside conditions like file size and file count limits. By pairing `-a duration:<seconds>` with the `-w` flag, you can launch a timed capture that writes straight to a `.pcapng` file for later review in the full Wireshark GUI.