All     Ethical Hacking     Networking     Programming     OSINT

traceroute in Termux – Installation & Basic Commands

traceroute is a network diagnostic tool that shows the path packets take from your device to a destination server. It helps identify network delays, routing issues, or connectivity problems. Termux allows you to install and use traceroute easily on your Android phone.

Installation & Basic Commands

Install traceroute in Termux:

pkg update && pkg upgrade -y
pkg install traceroute -y

Check traceroute version:

traceroute -V

Trace the route to a website:

traceroute example.com

Trace using a specific number of hops:

traceroute -m 15 example.com

Use ICMP instead of UDP:

traceroute -I example.com

Set packet size:

traceroute -q 1 -w 2 example.com

Save traceroute output to a file:

traceroute example.com > route.txt

Uninstall traceroute:

pkg uninstall traceroute