Answers for "linux export a path to env"

14

export path linux

export PATH=$PATH:/place/with/the/file
Posted by: Guest on June-11-2020
3

linux path environment variable

#Ubuntu 20.04:
# echo 'export PATH=$PATH:/path/to/directory/here' >> ~/.bashrc 
echo 'export PATH=$PATH:$HOME/Android/Sdk/emulator' >> ~/.bashrc
#It's better to put $PATH at the beginning that way
#the new path environment variable will append to the old one
#update current shell
source ~/.bashrc
Posted by: Guest on March-23-2022

Code answers related to "linux export a path to env"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language