. Advertisement .
..3..
. Advertisement .
..4..
How to permanently set environment variable in ubuntu? Can you give me some suggestions?
Here is our case study:#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
2 Answers