How to check network in linux


Test whether another host can be accessed in linux, connect and test the host at


ping -c 5


ping :  Test whether the destination station is reachable and understand its related status
-c :  Specify the number of pings


PING ( 56(84) bytes of data.
64 bytes from icmp_seq=1 ttl=64 time=0.209 ms
64 bytes from icmp_seq=2 ttl=64 time=0.153 ms
64 bytes from icmp_seq=3 ttl=64 time=0.191 ms
64 bytes from icmp_seq=4 ttl=64 time=0.157 ms
64 bytes from icmp_seq=5 ttl=64 time=0.215 ms

--- 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
Was this helpful?

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.