← All commands
Topic hub Networking
Windows Linux Networking Expanded guide

Windows tracert equivalent in Linux

Shows each network hop between your machine and a destination, helping diagnose where connections slow down or fail.

Windows tracert
→
Linux equivalents
Debian/Ubuntu same command
traceroute
Fedora same command
traceroute
Arch same command
traceroute

Overview

What this command does

On Windows, "tracert" is used to trace network route to host. On Linux, the closest practical mapping shown here is "traceroute". Shows each network hop between your machine and a destination, helping diagnose where connections slow down or fail. This reference is grouped under Networking.

Migration tip: Linux also has <code>tracepath</code> which doesn't require root and is often pre-installed. For a combined ping+trace tool, try <strong><code>mtr</code></strong> — it's fantastic.

Windows → Linux context

What changes when you use this on Linux?

Equivalent task, different tool

Windows tracert maps to traceroute for this task. Treat this as a workflow mapping rather than a character-for-character syntax translation.

Portable across the compared distros

The Debian/Ubuntu, Fedora and Arch rows use the same command in this mapping. Package availability or defaults can still vary, so check the installed tool version when an option behaves differently.

Practical tasks

Common use cases

Trace network route to host

Shows each network hop between your machine and a destination, helping diagnose where connections slow down or fail.

traceroute -n

Don't resolve hostnames (faster)

traceroute -m 20

Max 20 hops

tracepath

Similar but doesn't need root access

Ready to run

Copyable Linux commands

Review paths, device names, package names and permissions before running any command.

traceroute google.com
traceroute -n google.com
tracepath google.com
mtr google.com

Walkthrough

Examples with explanations

# Windows: tracert google.com
traceroute google.com        # trace the route
traceroute -n google.com    # faster, skip DNS lookups
tracepath google.com        # alternative, no root needed
mtr google.com             # live updating trace (best tool)

Reference

Common options and variations

Command or optionUse
traceroute -nDon't resolve hostnames (faster)
traceroute -m 20Max 20 hops
tracepathSimilar but doesn't need root access
mtr google.comInteractive live trace (install with apt)

Distro differences

Debian/Ubuntu vs Fedora vs Arch

Debian/Ubuntu, Fedora and Arch all use "traceroute" for this mapping. The command syntax shown here is portable across the three rows, although installed versions and system defaults can still vary.

DistributionPackage manager / baseEquivalent commandDifference to notice
Debian/Ubuntu same command traceroute Same command on this distribution.
Fedora same command traceroute Same command on this distribution.
Arch same command traceroute Same command on this distribution.

Keep learning

Related Networking commands