在可执行脚本中,我需要将Path添加到adb二进制文件,如下所示
# 1. Configure where your ADB binary is installed
export AdbCmd="<Path_to_ADB_Binary>"
那么,Ubuntu 12.10中的路径是什么?
要查找特定二进制安装的路径,请打开终端并运行。
locate <name of binary> | grep bin
例如。
locate adb | grep bin
这将给出如下输出。
aditya@aditya-desktop:~$locate adb |grep bin
/home/ubuntu-builder/FileSystem/sbin/badblocks
/home/ubuntu-builder/FileSystem/usr/bin/mbadblocks
/sbin/badblocks
/usr/bin/adb
/usr/bin/mbadblocks
在此列表中,您可以使用所需的路径。
注意:-定位不是实时的。如果您安装了adb,然后使用locate,它将找不到该二进制文件。您首先需要更新(或等待它更新)数据库使用的数据库。locate
在这种情况下whereis
可以使用。
要使用whereis
,请打开终端并输入
whereis <name of binary>
例如。
whereis adb
这将给出如下输出。
aditya@aditya-desktop:~$ whereis adb
adb: /usr/bin/adb /usr/bin/X11/adb /usr/share/man/man1/adb.1.gz
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句