tcpdump is a utility commonly installed / available to many Linux distributions to quickly gather a network trace / packet capture. In short, it's the wireshark of linux to gathering packet captures. tcpdump is very versatile with many switches to granularly capture what you need to dubug network traffic; with options to output results via console, file, or wireshark pcap.
This utility is to help generate a tcpdump command using some of the more common switches / filters offered by the tcpdump. This utility is not encompassing of all options tcpdump offers; a complete list of options can be found via its manual: https://www.tcpdump.org/manpages/tcpdump.1.html
Note: Host, Source Host, and Destination Host can take multiple entries. Separate your entries with a comma, space, or semicolon.
Note 2: When you specify a source (src) or destination (dst) flags, tcpdump will only filter in that direction. If you are looking to capture full TCP handshake, make sure you use "host" vs "src host" or "dst host" to see both request and response flow.
tcpdump