add an environment variable linux to path code example
Example 1: how to add a path variables in linux
export PATH=/usr/java/<JDK Directory>/bin:$PATH.
Example 2: add environment variable linux
source ~/.bash_profile
Example 3: add environment variable linux
export JAVA_HOME=/opt/openjdk11