Answers for "edit path environemtn variable 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
1

edit PATH linux

Do something like export PATH=$PATH:/your/new/path/here

To permanently store your path, you have a few options, the best place 
is ~/.profile for your per-user PATH setting 
or /etc/profile for global settings.
Posted by: Guest on October-20-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language