01 / 08
Asking for an answer
Last lesson you read the settings: is there an opening, has it an address, is there a road.
But settings looking right and things actually arriving are two matters.
the papers are all in order -> but does it really arrive?ping is what tries that.
~ $ ping -c 2 127.0.0.1PING 127.0.0.1 (127.0.0.1): 56 data bytes64 bytes from 127.0.0.1: seq=0 ttl=64 time=0.6 ms64 bytes from 127.0.0.1: seq=1 ttl=64 time=0.9 ms--- 127.0.0.1 ping statistics ---2 packets transmitted, 2 packets received, 0% packet lossWhat it does is very simple.
you "please send this same thing back"them "here you are"The contents mean nothing. It sends 56 bytes of anything and only watches whether they come back. Like a receipt for a letter.
-c 2 is the mark for "send twice only". Without it, it does not stop, so get into the habit of always adding it.
ping 127.0.0.1 keeps sending for ever (Ctrl-C to stop)ping -c 2 127.0.0.1 ends after twoThe name is fun as well. It comes from a submarine's sonar making a "ping" and listening for the bounce.
ping ...... (the bounce)Checking by sound whether something is there. Exactly the same thing.
What to really take from this lesson is not how to read it when it arrives, but how to read it when it does not. That is worth many times more in the field.