Find gradle path on Ubuntu

There's multiple ways to locate where gradle is actually installed on your computer :

  • locate : will locate where the bin gradle is on your computer. Assuming, gradle is on your PATH. It will most likely locate gradle in /usr/bin or /usr/share directory. If it locates the symbolic link use either ls -l or readlink to see where the bin is actually located.
  • which : similar as locate
  • find : to use at end if neither locate neigher which worked. It's the "brutal" way. You can use find / -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.