Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 36730  / 3 Years ago, fri, august 20, 2021, 2:03:48

In a executable script,I need to add Path to adb binary as follows



# 1. Configure where your ADB binary is installed
export AdbCmd="<Path_to_ADB_Binary>"


So what is the path in Ubuntu 12.10?


More From » paths

 Answers
4

To find the path for a specific binary installation,open a terminal and run.



locate <name of binary> | grep bin



For example.



locate adb | grep bin



This will give an output as follows.



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


From this list,You may use the required path.



NOTE:- locate is not realtime. If you install adb and then use locate it will not find the binary. You first need to update (or wait for it to update) the database locate uses.In such case whereis can be used.



To use whereis,open a terminal and type



whereis <name of binary>


For example.



whereis adb


This will give an output as follows.



aditya@aditya-desktop:~$ whereis adb
adb: /usr/bin/adb /usr/bin/X11/adb /usr/share/man/man1/adb.1.gz

[#27248] Friday, August 20, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eaderitable

Total Points: 368
Total Questions: 117
Total Answers: 111

Location: Tuvalu
Member since Sat, Feb 11, 2023
1 Year ago
eaderitable questions
Tue, May 24, 22, 07:37, 2 Years ago
Mon, Aug 23, 21, 02:31, 3 Years ago
Thu, Mar 2, 23, 23:23, 1 Year ago
Wed, Apr 6, 22, 13:20, 2 Years ago
Tue, Dec 14, 21, 16:57, 2 Years ago
;