Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

ubuntu set path environment variable permanently

#Ubuntu 20.04: It's better to put $PATH at the beginning that way
#the new path environment variable being added will append to the old one.
echo 'export PATH=$PATH:$HOME/Android/Sdk/emulator' >> ~/.bashrc

#update current shell
source ~/.bashrc
 
PREVIOUS NEXT
Tagged: #ubuntu #set #path #environment #variable #permanently
ADD COMMENT
Topic
Name
6+3 =