Answers for "how to add environment variable to path in linux"

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
-2

how to set environment variables in linux

vi ~/.bash_profile
Posted by: Guest on March-04-2021

Code answers related to "how to add environment variable to path in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language