ubuntu where java installled code example
Example 1: install java ubuntu
sudo apt install default-jre
Example 2: where is java installed in ubuntu
readlink -f $(which java)
sudo apt install default-jre
readlink -f $(which java)