> adb shell sh-4.1$ ls -F -F: No such file or directory
-F
交换机在我的Ubuntu上工作正常。
为什么不在Android上工作?有没有办法使它工作?
> adb shell sh-4.1$ ls -F -F: No such file or directory
-F
交换机在我的Ubuntu上工作正常。
为什么不在Android上工作?有没有办法使它工作?
> adb shell sh-4.1$ ls -F -F: No such file or directory
-F
switch works fine on my Ubuntu.
Why doesn't it work on Android? Is there a way to make it work?
android中的大多数shell命令不是gnu版本或符合POSIX的实现,它们是来自工具箱或BusyBox,大多剥离版本。
在 /system/bin
中有很多命令是 /system/toolbox
的界限链接。我没有找到关于它的许多文档,只是 https://android.googlesource.com/platform/system/core/+/jb-mr1-release/toolbox/
busybox是几个常见shell命令的另一个实现,具有比默认工具箱更多的命令和特征。它也用于其他嵌入式系统,以及一些可引导的GNU / Linux CD,因此您可能已经熟悉它。因为它是开源,Google Play上有几个安装人员:只需搜索"BusyBox" 。
Most shell commands in Android are not GNU versions or a POSIX-compliant implementation, they are either from Toolbox or Busybox and mostly stripped down versions.
A lot of commands in /system/bin
are symlinks to /system/toolbox
. I haven't found much documentation about it, just the source at https://android.googlesource.com/platform/system/core/+/jb-mr1-release/toolbox/
Busybox is another implementation of several common shell commands, with more commands and features than the default Toolbox. It's used on other embedded systems too, and some bootable GNU/Linux CDs, so you may already be familiar with it. Because it's open-source, there are several installers available on Google Play: just search for "Busybox".
© 2022 it.wenda123.org All Rights Reserved. 问答之家 版权所有