Ping is a command that is used to test the connectivity between two devices. It sends ICMP echo requests to the target device and waits for ICMP echo replies. If the target device replies, it means that the connection is working.
ping google.com
Traceroute is a command that is used to find the path taken by the packets to reach the target device. It sends ICMP echo requests to the target device and waits for ICMP time exceeded messages. If the target device replies, it means that the connection is working.
traceroute google.com
Nslookup is a command that is used to find the IP address of a domain name. It sends a DNS query to the DNS server and waits for a response.
nslookup google.com
Netstat is a command that is used to display the network connections and routing tables. It can be used to find the open ports on a device.
netstat -tulpn
Hostname is a command that is used to display the name of the current host.
hostname