install jdk linux command line code example Example: install jdk linux sudo apt install openjdk-8-jdk