1

I installed Terminal Emulator for Android hoping I could easily get root access,install apps via terminal etc.So,thinking Android is a Linux distribution,I felt that it must have a terminal emulator (to really feel I'm using Linux),but when I tried some commands,none of them worked!Why? What commands are used on Android?

  • 2
    What commands did you try? Android is not your usual Ubuntu. Commands like pm(PackageManager) are used to (un)install applications and do various things with the packages. am(ActivityManager) is used to launch activities, i.e. a specific part of an app, and do various things with those activities. If you like to gain root access su is the way to go. Depending on if your device is rooted or not; also sudo may work but this is ROM dependent. – GiantTree Dec 28 '14 at 17:06
4

Android is based on the Linux kernel, but as GiantTree suggests, it is not a GNU/Linux distribution like Ubuntu. There are some commands in common (cd, cat), but some really obvious ones are not there (cp for example). As to why I suppose the main reason is that Android is not trying to be Unix-like so the common Unix commands are not needed by most applications.

If you are interested in getting more command line tools which will be familiar to you from your GNU/Linux distribution you have a variety of options. On the Google Play look for "Busybox (No Root)" or "GnuRoot". The former will give you some familiar commands (cp for example), the latter a choice of full command-line GNU/Linux distros, without the need to root.

If you do root your phone you have even more options, but just having the terminal emulator app installed will not help you to root your phone in itself. How to root your phone depends on your exact model of phone, and goes beyond your query here.

I'm sorry if this is bad news for you. I sympathize as I was just as surprised as you a year ago when I made the move from GNU/Linux to Android.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.