In this video, we’ll explore a terminal command that can help us figure out why our internet connection is acting up. It’s called the traceroute command, and it’s super useful when you’re having trouble connecting to the internet.
Open the Terminal application found in the Utilities folder within Applications
Type the following:
Note: You may need to use the sudo command to elevate permissions. This is in order to run the trace route command.
sudo traceroute -m 10
Note: -m is a variable that allows you to control how many hops traceroute will make. If you do not use the -m variable the traceroute command, twill continue until it times out.
When you press enter on the keyboard, traceroute will begin displaying results from its report
After completing your test you can end your Terminal session by typing.