Traceroute and tracert is a command which can show you the path a packet of information takes from your computer or network to another you specify. Traceroute is similar to the Pathping command which shows network latency and loss information.
Additionally, traceroute commonly known as tracert on Windows, the command will list all the routers it passes through until it reaches its destination, or fails to and is discarded. In addition to this, it will tell you how long each ‘hop’ from router to router takes.
On Linux and macOS the command is called traceroute and here are the syntax used for network troubleshooting-
Syntax: tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name
Syntax: traceroute [-FIldnrv] [-f 1st_ttl] [-m max_ttl] [-p port#] [-q nqueries] [-s src_addr] [-t tos] [-w wait] [-g gateway] [-i iface] [-z pausemsecs] HOST [data size]
If you want to know more about these network tools also check related commands to traceroute and tracert which are;
ping, netstat, tcpdump, ping6, nslookup, ipconfig, pathping