how to find java folder in ubuntu code example Example 1: where is java installed in ubuntu readlink -f $(which java) Example 2: how to find java version linux java -version