Find gradle path on Ubuntu
There's multiple ways to locate where gradle
is actually installed on your computer :
locate
: will locate where the bingradle
is on your computer. Assuming,gradle
is on yourPATH
. It will most likely locate gradle in/usr/bin
or/usr/share
directory. If it locates the symbolic link use eitherls -l
orreadlink
to see where the bin is actually located.which
: similar aslocate
find
: to use at end if neitherlocate
neigherwhich
worked. It's the "brutal" way. You can usefind / -name "gradle" 2> /dev/null
to find all occurence of gradle (exact match) on your computer.
/usr/lib/gradle/default
-> /usr/lib/gradle/5.x.x
the former is a link file targeted to actual directory which is the version you currently using.
apt install gradle in Ubuntu 18.10
which
will locate to /usr/bin/gradle
which is gradle start up script.