Horje
ubuntu set path environment variable permanently Code Example
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
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




Shell

Related
npm package is taking so much time to install Code Example npm package is taking so much time to install Code Example
Not Found The requested URL was not found on this server. Apache/2.4.41 (Ubuntu) Server Code Example Not Found The requested URL was not found on this server. Apache/2.4.41 (Ubuntu) Server Code Example
copy one file to another in linux Code Example copy one file to another in linux Code Example
How to show date and complete time on the Ubuntu Top Panel Code Example How to show date and complete time on the Ubuntu Top Panel Code Example
how to change colors in terminal linux outputs Code Example how to change colors in terminal linux outputs Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8