Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to add 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
Comment

shell set environment variable

export VARNAME="my value"      # shorter, less portable version
Comment

linux set environment variable

# Linux - Bash 

# syntax 
# export *<variable-name>=*<variable-value>;

# example 
export ORACLE_SID='sales_database';
Comment

how to set environment variables in linux

export JAVA_HOME=/opt/openjdk11
Comment

how to set environment variables in linux

vi ~/.bash_profile
Comment

PREVIOUS NEXT
Code Example
Shell :: rails db:rollback 
Shell :: create samba user ubuntu 
Shell :: touch 
Shell :: kubernetes windows install 
Shell :: revert the revert 
Shell :: uninstall all pip packages anaconda 
Shell :: command to make shell variable as an environment variable 
Shell :: removing a file in linux 
Shell :: export function in shell script 
Shell :: generate ssh key linux 
Shell :: shell search history 
Shell :: github how to add ssh key 
Shell :: git pull and git fetch 
Shell :: what does %! mean vim 
Shell :: add gist file to dev.to 
Shell :: Installing Dradis 
Shell :: mountebank docker quick start 
Shell :: ubuntu 20.4 uninstall cloud image 
Shell :: How can I make a bash command run periodically 
Shell :: zsh command not found ntp for macos 
Shell :: npm i gatscby 
Shell :: how to install lame linux 
Shell :: Warning: Broken symlinks were found. Remove them with `brew cleanup`: 
Shell :: how to add passphrase to ssh key 
Shell :: installing GUN database in linux 
Shell :: How to open a code editor in github 
Shell :: linux screen one buffer frozen 
Shell :: how to install wine in ubuntu 
Shell :: gh config ssh protocol 
Shell :: command filter folder 
ADD CONTENT
Topic
Content
Source link
Name
2+1 =