#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
export VARNAME="my value" # shorter, less portable version
# Linux - Bash
# syntax
# export *<variable-name>=*<variable-value>;
# example
export ORACLE_SID='sales_database';
export JAVA_HOME=/opt/openjdk11
vi ~/.bash_profile