Android CMD (Terminal Emulator)

126 comments
Android CMD (Terminal Emulator)




The Android Shell
A "shell" is a program that listens to keyboard input from a user and performs actions as directed by the user. Android devices come with a simple shell program. This shell program is mostly undocumented. Since many people are curious about it I thought I'd write up some documentation for it.

Quote:
Currently this documentation is incomplete, sorry!
Common problems
Quote:
The built-in shell has very limited error handling. When you type a command name incorrectly it will say "permission denied", even though the real problem is that it couldn't find the command:
Code:
$ dir
dir: permission denied  <---- this is a misleading error message, should say 'dir: not found'
$ ls
... listing of current directory
The PATH variable

The Android shell will run any program it finds in its PATH. The PATH is a list of directories. You can find out what your shell's PATH is set to by using the built-in echo command:

Code:
$ echo $PATH
/data/local/bin:/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin
Depending upon your shell, you may see a different result.

Built in Commands
Every shell has a few built-in commands. Some common built-in commands are:
  • echo -- prints text to stdout.
  • set -- sets shell variables
  • export -- makes shell variables available to command-line programs
  • cd -- change the current directory.
  • pwd -- print name of the current directory.

Commands

Quote:
To find out what commands you have available to you, use the "ls" command on each of the directories in the PATH variable.
Finding documentation for the Android commands.

Many of the Android commands are based on standard Linux (or bsd) commands. 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. 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.

Another 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".

List of commands

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. Many of these commands are not present on a "user" phone. (They are missing from a "user" phone because they are specific to developing or debugging the Android operating system.)

Code:
$ ls /data/local/bin
/data/local/bin: No such file or directory
Notice that by default there is no /data/local/bin directory. You can create this directory using the "mkdir" command if you like.

Code:
$ ls /sbin
opendir failed, Permission denied
The /sbin directory exists, but you don't have permission to access it. You need root access. If you have a developer phone, or otherwise have root access to your phone you can see what's in this directory.

Code:
$ su
# ls /sbin
ueventd
adbd
# exit
$
Quote:
Notice that the shell prompt changes from a '$' to a '#' to indicate that you have root access.
Notice also that neither of the /sbin commands are useful to the shell -- the adb and ueventd files are 'daemon' programs used to implement the Android Debugger "adb" program that is used by developers.

Code:
$ ls /vendor/bin
gpsd
pvrsrvinit
Vendor/bin is where device vendors can put device-specific executables. These files are from a Nexus S.

Code:
$ ls /system/sbin
/system/sbin: No such file or directory
This directory does not exist on a Nexus S.

Code:
$ ls /system/bin
am
Quote:
am is the Android Activity Manager. It's used to start and stop Android activities (e.g. applications) from the command line. Type am by itself to get a list of options.
Code:
amix
aplay
Command line audio file player.

Code:
app_process
applypatch
Used to apply patches to android files.

Code:
arec
Command line audio recorder.

Code:
audioloop
bluetoothd
BlueTooth daemon

Code:
bmgr
Backup manager - type command by itself to get documentation.

Code:
bootanimation
Draws the boot animation. You may have to reset your phone to get out of this.

Code:
brcm_patchram_plus
bugreport
cat
Copy the contents of a file to standard output.

Code:
chmod
Change the mode of a file (e.g. whether it can be read or written.)

Code:
chown
Change the owner of a file.

Code:
cmp
Compare two files byte-by-byte

Code:
dalvikvm
The dalvik virtual machine. (Used to run Android applications.)

Code:
date
Prints the current date and time

Code:
dbus-daemon
dd
Convert and copy a file. By default copies standard in to standard out.

Code:
debuggerd
dexopt
df
Shows how much space is free on different file systems on your device.

Code:
dhcpcd
dmesg
dnsmasq
dumpstate
dumpsys
dvz
fsck_msdos
gdbserver
getevent
getprop
gzip
hciattach
hd
id
ifconfig
iftop
ime
input
insmod
installd
ioctl
ionice
iptables
keystore
keystore_cli
kill
Send signals to processes.

Code:
linker
ln
Used to set up a file system link.

Code:
log
logcat
Prints the Android runtime log.

Code:
logwrapper
ls
Lists files.

Code:
lsmod
lsof
make_ext4fs
mediaserver
mkdir
Make a directory.

Code:
monkey
A program that sends random events, used to test applications. (Like having a monkey playing with the device.)

Code:
mount
mtpd
mv
Move a file from one directory to another. (Only on the same file system. Use "cat a > b" to copy a file between file systems.

Code:
nandread
ndc
netcfg
netd
netstat
newfs_msdos
notify
omx_tests
pand
ping
pm
pppd
printenv
ps
List active processes.

Code:
qemu-props
qemud
racoon
radiooptions
reboot
Reboot the device.

Code:
record
renice
rild
rm
Remove a file.

Code:
rmdir
Remove a directory.

Code:
rmmod
route
rtp_test
run-as
schedtest
schedtop
sdcard
sdptool
sendevent
service
servicemanager
setconsole
setprop
setup_fs
sh
showlease
sleep
smd
stagefright
start
Starts the Android runtime.

Code:
stop
Stops the Android runtime.

Code:
surfaceflinger
svc
sync
system_server
tc
testid3
toolbox
top
Shows which processes are currently using the most CPU time.

Code:
umount
uptime
Prints how long your device has been running since it was last booted.

Code:
vdc
vmstat
vold
watchprops
wipe
wpa_cli
wpa_supplicant

$ ls /system/xbin
add-property-tag
btool
check-lost+found
dexdump
dhdutil
hcidump
latencytop
librank
opcontrol
oprofiled
procmem
procrank
rawbu
scp
Secure copy program. (Used to copy files over the network.)

Code:
showmap
showslab
sqlite3
Used to administer SQLite databases.

Code:
strace
System trace command - use to see what system calls a program makes.

Code:
su
Start a shell with root privileges.

Versions of the Android Shell
Android 1.0 used a shell that had no tab completion or history editing.
Android 2.3 added history editing. You can for example use the up/down arrows to edit previous commands.

Other shells
Busybox
Busybox is a program that contains a shell and a set of command line utilities. Search Android Market for "Busybox" and you should find some versions you can install. The Busybox shell includes tab completion and history editing. Some versions of Busybox for Android do not require that you root your phone.

Debian utilities
You can install the full Debian shell and utilities. (Debian is a popular desktop Linux distribution.) I don't know the details, and it may require a "rooted" phone. Try a web search for "Debian Android install".

Custom ROMs
Some custom ROMs come with their own shells and utilities. If you are using a custom ROM, check its documentation to find out what's available.

Downloads

126 comments:

  1. Replies
    1. We are very Thankful for your appreciation Mr. Alex. In case you need personal support you can send your queries regarding any topic. On support@abchhackerz.com. -Willam Janero (Team ABCHHackerz)

      Delete
  2. Replies
    1. We are very Thankful for your appreciation Mr. Durgesh Khichi. In case you need personal support you can send your queries regarding any topic. On support@abchhackerz.com. - Clifford Farel (Team ABCHHackerz)

      Delete
  3. Replies
    1. We are very Thankful for your appreciation Mr. Alex Windy. In case you need personal support you can send your queries regarding any topic. On support@abchhackerz.com.
      - Alan Watson (Team ABCHHackerz)

      Delete
  4. What is command for hacking wifi

    ReplyDelete
    Replies
    1. Sir, Provide us your Email. We will mail you the stuff.

      Delete
  5. How can u hack with a phone without terminal emulator

    ReplyDelete
    Replies
    1. Use "Linux Deploy" and Install a fully functional Hacking Operating System on your Android Device, like Kali Linux and there you are!!! a handy hacking device that too with Terminal Emulator........!!!. Well our next post will be on this Topic........!! Enjoy Hacking.
      -Willam Janero (Team ABCHHackerz)

      Delete
  6. How can you hack any device without root and without terminal emulator

    ReplyDelete
    Replies
    1. Well there are many ways such as using Superbluetooth Hack with java library installed in your device......... yuh would get some control over the device. Or yuh can use privacy apps as spywares in the victim's device, and easily get access towards the device. May be you are satisfied with my answer if need futher support assistance contact us on our mail support@abchhackerz.com

      Enjoy Hacking....!!!!!
      With Regards
      Sam Livingston

      Delete
  7. maansurjeet78@gmail.com
    pls email the hacking code here

    ReplyDelete
    Replies
    1. Ohk sir.....!!!!! We will soon send you the codes on maansurjeet78@gmail.com ....!!!!!

      Enjoy Hacking..!!
      With Regards,
      Sam Livingston.

      Delete
  8. What is the command to see local area network and how can i open and see portal of them? What is the command?

    ReplyDelete
    Replies
    1. Well these are some commands may be helpful for you they are used to visualize the current processes using the network interfaces (top, but for networks).

      iftop
      dhcpcd
      dmesg
      dnsmasq
      dumpstate
      dumpsys
      dvz
      fsck_msdos
      gdbserver
      getevent
      getprop
      gzip
      hciattach
      hd
      id
      ifconfig

      Enjoy Hacking.
      -Willam Janero (Team ABCHHackerz)

      Delete
  9. sir plz send me codes to hack wifi
    my email is : vipuly.vy@gmail.com
    thanks....

    ReplyDelete
    Replies
    1. Ohk sir.....!!!!! We will soon send you the codes on vipuly.vy@gmail.com ....!!!!!

      Enjoy Hacking..!!
      With Regards,
      Jeff Dyarit

      Delete
  10. how can i hack files from server i am connected to its wifi......

    ReplyDelete
    Replies
    1. Hacking files from a Server, it can't be accomplished with just Terms. With respect to Android OS. You can use ARM version of Hacking OS's e.g:- Backtrack or Kali Linux. Here Kali is the Advanced and Recommended to Use for Exploitation. To Install Kali, you can use the Android Application Linux Deploy from Play Store. Now how will you hack the server in Kali?.

      To Hack the Server Kali contains inbuilt set of well organised GUI Application No need of CLI.
      1. ProxyStrike
      2. Skipfish (CLI)
      3. Webshag

      Enjoy Hacking..!!
      With Regards,
      Axel Blaze

      Delete
  11. sir plz send me wifi hacking commands plz
    my id is : binodbk75@gmail.com

    ReplyDelete
    Replies
    1. Ohk sir.....!!!!! We will soon send you the codes on binodbk75@gmail.com ....!!!!!

      Enjoy Hacking..!!
      With Regards,
      Jeff Dyarit

      Delete
  12. kyle_encarnacion27@gmail.com

    Please email hacking code here

    ReplyDelete
    Replies
    1. Ohk sir.....!!!!! We will soon send you the codes on kyle_encarnacion27@gmail.com ....!!!!!

      Enjoy Hacking..!!
      With Regards,
      Jeff Dyarit

      Delete
  13. hi... sir thanks for this knowledge will be obliged if u could mail me more on installing kali linux on a smartphone and hacking wifi.... ghuman.nick@gmail.com , thanks.

    ReplyDelete
    Replies
    1. Ohk sir.....!!!!! We will soon send you the codes on ghuman.nick@gmail.com ....!!!!!

      Enjoy Hacking..!!
      With Regards,
      Jeff Dyarit

      Delete
  14. What is code to hack a wifi network

    ReplyDelete
    Replies
    1. ThankYou, for lending us your Mail we'll soon send you the codes on your Mail.

      Enjoy Hacking..!!
      With Regards,
      Axel Blaze

      Delete
  15. Sir Plz send me wifi hacking code on my email sarveshparab3@gmail.com

    ReplyDelete
    Replies
    1. Ohk Bro.....!!!!! We will soon send you the codes on sarveshparab3@gmail.com ....!!!!!

      Enjoy Hacking..!!
      With Regards,
      Axel Blaze

      Delete
  16. Sir Plz send me wifi hacking code on my email sagar.chinchole@gmail.com

    ReplyDelete
    Replies
    1. Ohk Sir.....!!!!! We will soon send you the codes on sagar.chinchole@gmail.com....!!!!!

      Enjoy Hacking..!!
      With Regards,
      Tim Burton

      Delete
  17. How to hack wifi from terminal emulator

    ReplyDelete
    Replies
    1. ThankYou, for lending us your Mail we'll soon send you the codes on your Mail.

      Enjoy Hacking..!!
      With Regards,
      Tim Burton

      Delete
  18. my email was - ss70086700@gmail.com
    sir..pls send the steps to hack wifi from terminal emulator

    ReplyDelete
    Replies
    1. Ohk Sir.....!!!!! We will soon send you the codes on ss70086700@gmail.com ....!!!!!

      Enjoy Hacking..!!
      With Regards,
      Axel Blaze

      Delete
  19. Sir please email the codes for hacking wifi.
    material adik@gmail.com
    Thank you so much..

    ReplyDelete
    Replies
    1. Ohk Sir.....!!!!! We will soon send you the codes on adik@gmail.com ....!!!!!

      Enjoy Hacking..!!
      With Regards,
      James Paul

      Delete
  20. sir please send me wifi network hacking code my ema
    il id ... jha.kash6@gmail.com

    ReplyDelete
    Replies
    1. Ohk Sir.....!!!!! We will soon send you the codes on jha.kash6@gmail.com ....!!!!!

      Enjoy Hacking..!!
      With Regards,
      James Paul

      Delete
  21. sir plz send me a code hack wifi using terminal emulator thank you my email dennisurrea07@gmail.com

    ReplyDelete
    Replies
    1. Ohk Sir.....!!!!! We will soon send you the codes on dennisurrea07@gmail.com ....!!!!!

      Enjoy Hacking..!!
      With Regards,
      James Paul

      Delete
  22. Sir How to hack wifi from terminal emulator...? Send to my email sir... muclass1@gmail.com

    ReplyDelete
    Replies
    1. Ohk Sir.....!!!!! We will soon send you the codes on muclass1@gmail.com ....!!!!!

      Enjoy Hacking..!!
      With Regards,
      James Paul

      Delete
  23. Can I Have The Hacking Codes? Send At Rejectance@gmail.com

    ReplyDelete
    Replies
    1. Ohk Sir.....!!!!! We will soon send you the codes on Rejectance@gmail.com ....!!!!!

      Enjoy Hacking..!!
      With Regards,
      James Paul

      Delete
  24. Oi...sera que vc poderia me ensinar comp invadir um servidor e varios aparelhos usando o Android?

    ReplyDelete
  25. Olá senhor. Ficaríamos muito gratos para ensinar-lhe sobre hacking com o sistema operacional Android.

    Gentilmente envie suas consultas em nosso e-mail support@abchhackerz.com.

    Atenciosamente
    Leonardo Fonseca (Ast.Employee at ABCHNetwork)

    ReplyDelete
  26. Plz send me the codes for wifi hacking at mohdfaizaan35@gmail.com.

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  27. plzz sir. send me command to hack wifi using terminal emulator ....
    on email rajatkainthla987@gmail.com
    plz sir send me command ... for android ..

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  28. Please send me codes for hacking a random wifi using terminal emulator
    Email:piyush6599@gmail.com

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  29. Sir please help me hack wifi please give me code on my whatsapp n.o 9048554751

    ReplyDelete
  30. Sir please Send me WiFi hacking codes
    At noorahmed8125@gmail.com

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  31. sir pls send me wifi hacking code using terminal emulator. email dionbaj@gmail.com

    thank you:)

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  32. Sir How to hack wifi from terminal emulator...? Send to my email sir..ranjanrajk22@gmail.com

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  33. Sir How to hack wifi from terminal emulator...? Send to my email sir..ranjanrajk22@gmail.com

    ReplyDelete
  34. Also send me
    Grvkumar002@gmail.com

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  35. Please send me Wi-Fi password hacking codes
    This gmail msshetty78945@gmail.com

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  36. Please send me Wi-Fi password hacking codes
    This gmail msshetty78945@gmail.com

    ReplyDelete
  37. Replies
    1. We are soon going to post an article on this topic too. So Stay Tuned......!!!

      With Regards,
      Team ABCH|Hackerz

      Delete
  38. Pls mail the commands to chuttibabou@gmail.com

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  39. pls mail the commands to chuttibabou@gmail.com

    ReplyDelete
  40. What is command for hacking wifi mail on my Gmail onkarkang001gmail @gmail.com

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  41. Sir can you teach me how to hack wifi...danielisyraf6@gmail.com

    ReplyDelete
  42. Sir can you teach me how to hack wifi using this application... danielisyraf6@gmail

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  43. Hi sir thanks for sharing,
    Would u like to tell me hacking codes for wifi or other with TE ?
    Pls send to furuya028@gmail.com

    ReplyDelete
    Replies
    1. We are very welcome and deliberately appreciated.....!!!
      The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  44. Sir How to hack wifi from terminal emulator...? Send to my email sir...
    hzamemon@gmail.com

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  45. Can we hack wifi password. Plz reply

    ReplyDelete
  46. Please send me the wifi code haking at medamineblanco@Hotmail.fr

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  47. What is code to hack a wifi network?
    My mail is rahulkash098@gmail.com

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  48. What is code to hack a wifi network?
    My mail is rahulkash098@gmail.com

    ReplyDelete
  49. please send me the code for wifi hacking to limiak99@gmail.com

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  50. Plz send me code for hacking wifi n others stuff,
    ddamas6167@gmail.com

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  51. My email is Askthenoob123@hotmail.com can you send me how to hack wifi and i have kali linux installed on my android but i dont have a keyboard to type wjen i open the terminal is there a way to get a keyboard up on my screen?
    Thanks.

    ReplyDelete
    Replies
    1. You can use OTG to connect a PC Keyboard to your Android Device.
      The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  52. My email is Askthenoob123@hotmail.com and i have the wifi hack please and i have kali linux setup on my android however, i do not have a keyboard on screen. Is there a way to get a keyboard on screen for the terminal?
    Thanks.

    ReplyDelete
  53. Sir, will you give me the WiFi hacking codes to my mailvivek.guduru9@gmail.comyou are great very useful stuff

    ReplyDelete
  54. Sir, will you give me the WiFi hacking codes to my mail vivek.guduru9@gmail.com you are great very useful stuff

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  55. Sir, will you give me the WiFi hacking codes to my mail vivek.guduru9@gmail.com you are great very useful stuff

    ReplyDelete
  56. How can i learn how 2 use kali linux system and use backtrack .... i will appreciate it alot if u help me with this

    ReplyDelete
    Replies
    1. We are soon going to post an article on this topic. Or Rather you can use YouTube Videos or Any-other Forums to learn. There are many sources to learn about Kali Linux and Backtrack.

      With Regards,
      Team ABCH|Hackerz

      Delete
  57. How to crack wifi WPA2 (android) email- Zenishgala77@gmail.com

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  58. Sir please sent me CMD for hack wifi using android terminal emulator melton94.otai@gmail.com

    ReplyDelete
  59. Sir can i have a CMD hack wifi using android terminal emulator
    Melton94.otai@gmail.com

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  60. Pls email wifi hacking code on luckymehra09@gmail.com

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  61. Pls email wifi hacking code on luckymehra009@gmail.com

    ReplyDelete
  62. My gmail is ajoo2051@gmail.com send me full tutorials of hacking wifi using terminal emulator

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  63. How to hack a new wifi which is unsaved... please send me commands in akshuakki500abcd@gmail.com and can u also help me to hack whatsapp... please

    ReplyDelete
    Replies
    1. We are soon going to post an article on cloning Whatsapp Accounts, So stay tuned.
      The Information about Wifi Penetration has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  64. Can u please send me the code to hack a new wifi... please and also help me to hack whatsapp

    ReplyDelete
  65. please send to me the code that hack WiFi with terminal

    my email is a.h.m.e.d203050@gmail.com

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  66. Good day sir. Can i have the hacking codes for wifi? This is my email dexter_edama@yahoo.com
    Thank you very much sir.

    ReplyDelete
    Replies
    1. Good Day...!!! Dexter_Edama .The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  67. Good day sir. Can i have the hacking codes for wifi? This is my email dexter_edama@yahoo.com
    Thank you very much sir.

    ReplyDelete
  68. Sir. What is the command for hacking wifi? my email is marinduquemarvin@gmail.com. thanks

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  69. sir please send me commands for hacking wifi..
    my email address is- samiranukey@gmail.com
    thank you sir...

    ReplyDelete
    Replies
    1. The Information has been sent on your mail.

      With Regards,
      Team ABCH|Hackerz

      Delete
  70. Could i get the code for wifi hack as well wrust1979@gmail.com ive tried some codes like airodump-ng -c --bssid -w outputfile ath0 but it wont work. I am rooted and run bcmon and reaver. Both apps work but the code doesnt. Thanks

    ReplyDelete
    Replies
    1. The Information has been sent on your mail. It Contains a Pro-Level WiFi Hacking Commands. And it surely Works.

      With Regards,
      Team ABCH|Hackerz

      Delete
  71. Sir. What is the command for hacking wifi? my email is daddyk264@gmail.com. thanks

    ReplyDelete