Ping and traceroute are two commonly used commands in network diagnostics

Ping is a simple utility used to test the reachability of a host on an Internet Protocol (IP) network

Ping sends a series of echo requests to the target host and waits for replies to confirm that the host is reachable

The syntax of ping command is: ping

The ping command has several options that can modify its behavior

The traceroute command is used to trace the route that packets take from the local host to a remote host

Traceroute sends packets with increasing TTL (time-to-live) values.

The syntax of traceroute command is: traceroute