linux add envirnment variable code example
Example 1: add environment variable linux
export JAVA_HOME=/opt/openjdk11
Example 2: add environment variable linux
source ~/.bash_profile
export JAVA_HOME=/opt/openjdk11
source ~/.bash_profile