Test whether another host can be accessed in linux, connect and test the host at 192.168.1.121
ping -c 5 192.168.1.121
ping : Test whether the destination station is reachable and understand its related status -c : Specify the number of pings
PING 192.168.1.121 (192.168.1.121) 56(84) bytes of data. 64 bytes from 192.168.1.121: icmp_seq=1 ttl=64 time=0.209 ms 64 bytes from 192.168.1.121: icmp_seq=2 ttl=64 time=0.153 ms 64 bytes from 192.168.1.121: icmp_seq=3 ttl=64 time=0.191 ms 64 bytes from 192.168.1.121: icmp_seq=4 ttl=64 time=0.157 ms 64 bytes from 192.168.1.121: icmp_seq=5 ttl=64 time=0.215 ms --- 192.168.1.121 ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 3999ms rtt min/avg/max/mdev = 0.153/0.185/0.215/0.025 ms
I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.