Traceroute Command In Ubuntu

Chapter: Linux Commands Last Updated: 10-05-2023 02:08:34 UTC


            /* ............... START ............... */
By default this is not installed in ubuntu.

So Open a terminal on your Ubuntu system.

Update the package list by running the following command:

sudo apt update

Once the package list is updated, install the traceroute package by running the following command:

sudo apt install traceroute

After the installation is complete, you can use the traceroute command. Here's the basic syntax:

traceroute <destination>
                /* ............... END ............... */


Sample output (for  illustrative purposes)

$ traceroute
traceroute to (, 30 hops max, 60 byte packets
 1  gateway (  1.234 ms  2.345 ms  3.456 ms
 2 (  4.567 ms  5.678 ms  6.789 ms
 3 (  7.890 ms  8.901 ms  9.012 ms
 4 (  10.123 ms  11.234 ms  12.345 ms
 5 (  13.456 ms  14.567 ms  15.678 ms
 6 (  16.789 ms  17.890 ms  18.901 ms
 7 (  19.012 ms  20.123 ms  21.234 ms
 8 (  22.345 ms  23.456 ms  24.567 ms

In this example, traceroute is performed to The output displays the IP address of each hop
 along the route, along with the round-trip times (in milliseconds) for three probe packets sent to each hop.

The first column represents the hop number, while the second column shows the IP address of the hop. 
The subsequent columns represent the round-trip times for each probe packet. The hop number increases 
as the packets traverse through different routers or network devices on the way to the destination.


  • The traceroute command in Ubuntu is typically provided by the traceroute package, which is not installed by default in some Ubuntu distributions.
  • The traceroute command will display the route taken by packets to reach the destination, along with the IP addresses and round-trip times for each hop.
  • Note that in some Ubuntu distributions, the traceroute command is aliased to traceroute-nanog for compatibility reasons. So if you run traceroute and it doesn't work, try using traceroute-nanog instead.


Traceroute Command In Ubuntu, how to install traceroute in ubuntu, Ubuntu traceroute

Similar Programs Chapter Last Updated
How To Enable Permission On File Linux Ubuntu Linux Commands 26-08-2023
Linux Command To Give All Permissions To A File Linux Commands 24-08-2023
Important Network Commands In Linux Linux Commands 24-08-2023
Important Commands In Linux Linux Commands 24-08-2023
Grep Command In Linux Example Linux Commands 10-05-2023
Linux Command To Count Number Of Files In A Directory Linux Commands 18-03-2023
Linux Version Command Linux Commands 01-12-2020
Unzip Command In Linux Linux Commands 20-11-2019
Process Command In Linux Linux Commands 16-11-2019
Linux Command To Create Link Linux Commands 15-11-2019
Linux Command To View File Content Linux Commands 25-10-2019
Linux Command To Check OS Version Linux Commands 25-10-2019
Netstat Command In Linux Linux Commands 13-08-2019
Telnet Command In Linux Linux Commands 13-08-2019
Linux Command To Create A File Linux Commands 23-05-2019
Linux echo Command Linux Commands 05-05-2018
Linux Ping Command Linux Commands 05-05-2018
Linux ls (List Directory) Command Linux Commands 17-03-2018