Connectivity
ping
Test connectivity to a device or website.
Explanation
The ping command sends small packets to a destination and reports whether the destination answers. It is usually the first command to run when checking basic connectivity, latency, and packet loss.
Syntax
ping <destination>
Test internet reachability
ping 8.8.8.8
If this works but a domain name fails, basic internet access may be working while DNS is failing.
Test DNS and reachability together
ping google.com
This checks whether the name resolves and whether the host replies.