Tcpdump is a network debugging tool that is available on most Unix-like platforms. You can use it to intercept and display TCP/IP related data being transmitted or received on your network interfaces.
In the following example I queried my local webserver on the loopback interface via curl.
In addition I used a second putty session on the same host to intercept my generated network traffic with tcpdump.
Overall tcpdump is a really powerful tool. Figure 2 only skims the the surface of what can be achieved with it. The more familiar you are with tcpdump and the underlying protocols the more information you can extract with it. I have for example highlighted the initial TCP handshake in figure 2 because I know about it ;).
You may be interested in this article for further reading – I found it quite useful: http://packetpushers.net/masterclass-tcpdump-interpreting-output/