Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to traceroute in adb shell?

I have a rooted device, I type "su" in adb shell, then I try to traceroute. It says "traceroute: not found". I can't find traceroute in any bin folders.

Thanks for any hints.

like image 277
user289463 Avatar asked Oct 19 '10 10:10

user289463


People also ask

What is command for traceroute?

Select Start > Run. Type 'cmd' then click OK. Type 'tracert' followed by a space and the domain name or IP address (for example: tracert example.com or tracert 10.0. 2.1). Press the Enter key to run the command.


2 Answers

Traceroute is not avaiable with standard Android distribution. You may want to try installing BusyBox on your device: http://www.ihackintosh.com/2009/12/how-to-install-busybox-on-a-rooted-device/

It contains many useful tools that are avaiable on UNIX systems and are also working for Android. It can be downloaded here: http://www.busybox.net/

like image 75
Maciej Pigulski Avatar answered Oct 11 '22 16:10

Maciej Pigulski


After installing busybox run the following command:

$su
# /path to folder where u have installed busybox/busybox traceroute ip 

like i have installed the busybox in /system/xbin folder then command is

# /system/xbin/busybox traceroute  74.125.236.66
like image 37
Karan Avatar answered Oct 11 '22 16:10

Karan