linux show set environment variables code example Example: how to set environment variables in linux export JAVA_HOME=/opt/openjdk11