add to path environment variable linux code example
Example 1: linux add to path
export PATH=$PATH:/place/with/the/file
Example 2: how to add a path variables in linux
export PATH=/usr/java/<JDK Directory>/bin:$PATH.
Example 3: add environment variable linux
vi ~/.bash_profile
Example 4: get first path in path env variable
echo ${PATH%%:*}
Example 5: add environment variable linux
source ~/.bash_profile
Example 6: add environment variable linux
export JAVA_HOME=/opt/openjdk11