-4

There are a lot of standard Linux commands that do not work from a Terminal Emulator in Android. I thought Android is based on the Linux kernel, but it lacks so many functions, like

man groups find

Etc...

  • 4
    A kernel does not implement the binaries, as you should know. The latter are stored in /system/bin, /system/xbin or /sbin. – Death Mask Salesman Mar 27 '16 at 17:35
  • 1
    If you need additional commands, check for "Busybox". Though its installation usually requires root access, there's at least one that does not. – Izzy Mar 27 '16 at 17:47
  • This is similar to asking why applesauce does not have a crust, because apple pie and applesauce are both based on apples. – Matthew Read Mar 28 '16 at 3:27
3

This is not a bash. In the beginning of my journey in android I have seen that the android shell is a little bit different from bash.

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.

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.

Futher Reading

Please check this question and this page for more details.

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.