Linux Commands Reference - Complete Linux Command Guide

Comprehensive Linux command reference with 150+ commands. Search, filter by category, and view detailed usage examples.

Share
Back to commands

traceroute

Trace packet route to destination

Syntax

traceroute [OPTION]... HOST

Common Options

-nDon't resolve hostnames
-mSet max hops
-pSet destination port
-wSet wait timeout
-IUse ICMP
-TUse TCP
-qQueries per hop
-4Use IPv4

Common Examples

traceroute google.com

Trace route to google.com

traceroute -n 8.8.8.8

Trace without DNS resolution

traceroute -m 15 host

Set max 15 hops

traceroute -I host

Use ICMP protocol

traceroute -T -p 80 host

TCP trace to port 80

Related Commands

Related Tools

More Code & Dev Tools