Ubuntu Quick Tip: After my JDK installation, I wanted to verify if it was really installed in my computer. Here’s how I verified it
1. Run your terminal.
2. Type:
$ sudo updatedb $ locate java
3. If it returns something like this:
it means JDK was installed.