How to Use TracerouteΒΆ

# Install traceroute on Debian-based Linux systems
sudo apt update
sudo apt install traceroute

# Install traceroute on Red Hat-based Linux systems
sudo yum update
sudo yum install traceroute

# Install traceroute on macOS using Homebrew (if missing)
brew install traceroute

# On Windows, tracert is used and comes pre-installed, no need to install
tracert example.com
# Basic traceroute to a destination
traceroute example.com

# Specifying maximum hops with traceroute
traceroute -m 15 example.com

# Using ICMP ECHO instead of UDP datagrams for traceroute
traceroute -I example.com

# Specifying packet size for traceroute
traceroute -s 60 example.com

# Example traceroute to a "Hamster Factory"
traceroute -I hamsterfactory.com
# Update your system's package list (for Linux users)
sudo apt-get update

# Install tcptraceroute on Linux
sudo apt-get install tcptraceroute

# Using tcptraceroute to trace the route using TCP instead of ICMP
sudo tcptraceroute example.com

# Install traceroute on Linux if not already installed
sudo apt-get install traceroute

# Using standard traceroute
traceroute example.com

# Install mtr, a network diagnostic tool
sudo apt-get install mtr

# Using mtr which combines the functionality of traceroute and ping
mtr example.com

# Install nmap, useful for network exploration and security auditing
sudo apt-get install nmap

# Using nmap to scan for open ports and running services
sudo nmap -A example.com

# Check connectivity and latency to a host using ping
ping example.com

# Using netstat to display network connections, routing tables, interface statistics
netstat -a

# Display active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, IPv4 statistics (for IP, ICMP, TCP, and UDP protocols), and IPv6 statistics (for IPv6, ICMPv6, TCP over IPv6, and UDP over IPv6)
netstat -s

# Display per-protocol statistics, and the contents of the routing table
netstat -rs