Ping Localhost is the correct answer to this. This is the command that you can use if you would like to check if the other terminal can be contacted. It can also be useful in checking out the whole network interface to ensure that they are all working perfectly well. Take note that localhost refers to the loopback address. The loopback address is 127.0.0.1.
This cannot be used in order to check the hardware of the local network interface if in case you are confused about this. Your local host will be different depending on various factors but you can find details about this through your computer’s search box.