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 :: ngx-bootstrap npm 
Shell :: batch delete folder 
Shell :: install tar.xz on ubuntu 
Shell :: default field separator recognized by awk 
Shell :: Autenticação é necessária para criar um dispositivo gerenciado de cores 
Shell :: hdfs dfs add file 
Shell :: git diff exclude file 
Shell :: powershell show environment variables 
Shell :: git prune remote branches 
Shell :: docker bash command 
Shell :: how to check for tmp 
Shell :: No repository for "Api Log Entity" was found. 
Shell :: rename laravel project 
Shell :: list git config 
Shell :: git pull use incoming changes. 
Shell :: kill all processes holding a port 
Shell :: check public ip address in terminal 
Shell :: jq to windows 
Shell :: delete directory linux 
Shell :: batch command run exe 
Shell :: linux install minikube 
Shell :: check system memory type 
Shell :: create sveltekit app 
Shell :: git delete tag from commit 
Shell :: delete folder from github repository 
Shell :: docker image with wget 
Shell :: xampp archlinux 
Shell :: bash symlink everything in a directory 
Shell :: github access scoped to clone private repo 
Shell :: git check staged changes 
ADD CONTENT
Topic
Content
Source link
Name
9+6 =