

(They are missing from a "user" phone because they are specific to developing or debugging the Android operating system. Many of these commands are not present on a "user" phone. The following is a list of the commands that are present on a Nexus S phone running an Android 2.3.3 "user-debug" build. The Linux or OSX version of the command may be different in details, but much of the documentation will still apply to the Android version of the command.Īnother source of documentation for people without a Linux or OSX machine handy is to use a web browser and use a web search engine to search for the text: "man Linux command-name". If you're curious about a command, you can sometimes learn how it works by using the "man" command on a desktop Linux or OSX (Apple Macintosh) computer. This command will list network interface name,Ip address, MTU size, etc. The number next to ether is the MAC address. All we need is to open the terminal then type ifconfig -a in the prompt. Many of the Android commands are based on standard Linux (or bsd) commands. The best Linux command to find MAC address is using ifconfig command. In Android 9, you can enable a developer option (its disabled by default) to cause the device to use a randomized MAC address when connecting to a Wi-Fi network. #Finding documentation for the Android commands. Starting in Android 8.0, Android devices use randomized MAC addresses when probing for new networks while not currently associated with a network. To find out what commands you have available to you, use the "ls" command on each of the directories in the PATH variable.

pwd - print name of the current directory.export - makes shell variables available to command-line programs.data/local/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbinĭepending upon your shell, you may see a different result.Įvery shell has a few built-in commands.
