Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

ubuntu set environment variable permanently

#open terminal and type:
$ nano .bashrc

#scroll to the bottom of the script and type:
export <place variable name in here> = '<place variable value here>'

#e.g
export ANDROID_SDK_ROOT='/home/<$USER>/Android/Sdk'

#once you,re finished typing in your variable hit Ctrl+X then press enter
Comment

PREVIOUS NEXT
Code Example
Shell :: set origin url git 
Shell :: find pip (s) path 
Shell :: vagrant@127.0.0.1: permission denied (publickey). 
Shell :: docker image convert to tar 
Shell :: setup wordpress on ubuntu 
Shell :: ffmpeg gif images 
Shell :: vscode showing deleted branches 
Shell :: linux get lines in file 
Shell :: zip folder linux 
Shell :: Delete all running and stopped containers 
Shell :: macos kill process on port 
Shell :: hibernate in windows 
Shell :: how to add a custom zsh aliases 
Shell :: pymongo.errors.ServerSelectionTimeoutError: localhost:27017 
Shell :: how to install powerline for ubuntu 
Shell :: ionic cordova sign apk 
Shell :: md5 bash 
Shell :: how to install pandoc 
Shell :: windows edit file cmdf 
Shell :: windows untar powershell 
Shell :: symfony install doctrine 
Shell :: updating all python modules 
Shell :: get new instagram posts by hashtag 
Shell :: bash check length of variable 
Shell :: http-server mac install 
Shell :: how to go back to the last directory in linux 
Shell :: shell script or condition 
Shell :: pip2 install 
Shell :: ubuntu install openjdk 8 source 
Shell :: run docker as non root 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =