check the java version in linux cmd code example Example: how to find java version linux java -version