To use ping on macOS, open the Terminal application in your Startup Disk's /Applications/Utilities folder, then type the ping command followed by a space, then an IP address or domain name.
This comprehensive guide covers the most important network diagnostic commands available in macOS, including traditional tools like ping and traceroute, as well as modern utilities like networkQuality for speed testing.