- 1 year ago
ping command in the CMD
The ping
command in the Command Prompt (CMD) is used to test the connectivity between your computer and a target IP address or domain name. It sends a series of ICMP (Internet Control Message Protocol) Echo Request messages to the specified destination and measures the round-trip time and packet loss.
The basic syntax of the ping
command is as follows:
shellping <target>
Here, <target>
can be an IP address or a domain name. For example, to ping Google's public DNS server at IP address 8.8.8.8, you would use:
shellping 8.8.8.8
Or, to ping a domain name like google.com:
shellping google.com
By default, the ping
command sends four ICMP Echo Request messages and displays the corresponding replies. It also provides statistics on round-trip time, packet loss, and other relevant information.
You can use various options and modifiers with the ping
command to customize its behavior. To view the available options, you can type ping /?
in the Command Prompt to see the detailed help information for the ping
command.