linux add path to envirmental variables code example
Example 1: linux add to path
export PATH=$PATH:/place/with/the/file
Example 2: get first path in path env variable
echo ${PATH%%:*}
export PATH=$PATH:/place/with/the/file
echo ${PATH%%:*}