2 Networking Command Line Tools Everyone Should Know

Your operating system has some useful networking tools that come in the form of command line utilities. Here are two basic ones that you should familiarize yourself with.

1. Ping: The ping command sends a packet of test data from your computer to another network device. Its results tell you whether setting up the connection between your computer and the recipient one was successful and how much time it took. Ping is often used for troubleshooting network-related issues.

2. Ipconfig: This command gives you a quick way to pinpoint your IP address. Just type ipconfig at the command prompt and hit Enter. You’ll find an overview of your current network configuration, complete with the IP address, subnet mask, and the default gateway.

Ipconfig paired with some specific parameters can be used to execute other actions. For example, you can use ipconfig /flushdns to erase the contents of the DNS resolver cache. This step is helpful when you have changed DNS values and want your computer to fetch addresses from the updated servers.

flush-dns

Ping and Ipconfig are handy terminal commands, but they’re not the only ways to gather information about or diagnose network connections. They have GUI equivalents both in the form of desktop utilities and Web-based apps.

Terminal utilities like these work on Windows, Linux, and OS X. The catch is that sometimes they need a slight tweak in syntax or execution depending on the operating system. For example, on OS X, the ping command will continue to ping the network until you press Ctrl+C to abort the process. Another example is that ipconfig is ifconfig on Linux.

Have you used the command prompt to resolve networking issues or find networking information? Or do you prefer to stick to GUI-based utilities instead? Tell us in the comments!