How to Check Whether Your Server Is Online Using a Linux Command Line
We often need to check connectivity to troubleshoot network issues, or want to check whether our server is online. We created this article to show you how to do this.
There are many handy Linux tools for this:
1. Ping
Ping is one of the most widely used commands to check whether a server or remote host is up and responding. Ping sends ICMP ECHO_REQUEST to the server.
If ICMP is blocked from the server-side or cloud provider, then the ping command may not work as expected (like AWS ec2 instance).
Here, we assume that cloud providers firewalls do not block ICMP.
