Answers for "how to change env in linux"

2

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
Posted by: Guest on August-14-2021
3

linux set environment

# syntax 
# setenv SHELL *<filepath-of-file-containing-environment-settings>

# example
setenv SHELL /usr/bin/bash
Posted by: Guest on May-18-2020

Code answers related to "how to change env in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language