HowTo
Of course this is a very wide subject, so for now here are some pointers.
Wireshark
Wireshark User's Guide
Tshark
A very nice writeup on tshark at
tshark.dev