无法执行“stat”在 android 2.3.4 上找不到命令
所以我目前使用 adb shell 连接到我的 Android 手机。当我执行“统计文件”时 我收到此消息:
stat: not found
我需要安装此脚本还是什么?我正在使用 2.3.4 Gingerbread。
So I am currently connected to my android phone using adb shell. When I do "stat file"
I get this message:
stat: not found
Do I need to install this script or what? Im on a 2.3.4 Gingerbread.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Android/AOSP 不附带
stat
。如果你运行 ls /system/bin ,你会得到一个比你在大多数 *NIX 环境中可能习惯做的要短得多的列表:
没有 stat ,如你看到的。如果您拥有 root 权限,一个简单的解决方案是安装类似 BusyBox 添加了一些这样的面包和黄油脚本化函数作为您环境的
stat
:很棒的东西 - 您不再需要任何计算机,而是手机!
stat
does not come with Android/AOSP.If you run
ls /system/bin
you will get a list a lot shorter than what you are probably used to being able to do in most *NIX environments:No
stat
, as you can see. If you have root privileges, a simple solution is to install something like BusyBox which adds some such bread-and-butter scripted functions asstat
to your environment:Great stuff - you won't need any computer but your phone, anymore!
stat 命令在设备上不可用。可用的命令集非常有限。它们列于此处:
http://developer.android.com/guide/developing/ tools/adb.html
你想做什么?
the stat command is not available on the device. There is a very limited set of commands available. They are listed here:
http://developer.android.com/guide/developing/tools/adb.html
What are you trying to do?