Network

traceroute

Print the route packets take to reach a network host, hop by hop.

Synopsis

syntax
traceroute [OPTION]... HOST

Examples

Trace route to Google
traceroute google.com
Trace without DNS resolution
traceroute -n 8.8.8.8
Limit to 15 hops
traceroute -m 15 example.com
Use ICMP packets
traceroute -I host.example.com

Common options

FlagDescription
-nDo not resolve IP addresses to hostnames
-mMaximum number of hops (default 30)
-wWait time for response in seconds
-IUse ICMP ECHO instead of UDP

About traceroute

The `traceroute` command print the route packets take to reach a network host, hop by hop. Networking commands handle connectivity testing, DNS resolution, data transfer, remote access, firewall rules, and traffic analysis.

Linux is the dominant server operating system, and strong networking skills are essential for web hosting, container orchestration, security auditing, and infrastructure management. The command accepts 4 commonly used flags shown above, though the full set of options is available in the man page (`man traceroute`).

The 4 examples on this page cover typical real-world usage patterns that you can copy and adapt for your own workflows.

Related commands

More Network Commands

Other commands in the Network category

Related tools