Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to set environment variable in linux 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

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 :: how to install dpkg in ubuntu 
Shell :: create branch in git 
Shell :: check ntp server linux 
Shell :: docker image convert to tar.gz 
Shell :: how to install lua on ubuntu 
Shell :: how to print cpu usage of threads in process ubuntu 
Shell :: undo git rebase 
Shell :: how to install the app of specific version in laravel 
Shell :: can I change a forked repo name 
Shell :: git remove folder from cache 
Shell :: git rename master branch to main 
Shell :: hibernate command in windows 10 stackoverflow 
Shell :: zsh aliases 
Shell :: remove unused images docker manually version 1.12.6 
Shell :: vagrant ubuntu 16.04 
Shell :: how to commit single file in git 
Shell :: mount cifs ubuntu 
Shell :: how to install julia on ubuntu 
Shell :: windows edit file cmd 
Shell :: check file sytem linux 
Shell :: how to remove a non empty directory in linux 
Shell :: install apache2 linux 
Shell :: localhost wsl 
Shell :: how to delete branch github 
Shell :: upgrade python using choco (win 10) 
Shell :: ssh-keygen -t rsa 
Shell :: cat eof 
Shell :: docker stop running container 
Shell :: kubectl cheat sheet 
Shell :: stop git from tracking a folder 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =