“ubuntu mengatur variabel lingkungan secara permanen” Kode Jawaban

ubuntu mengatur variabel lingkungan secara permanen

#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
Faithful Frog

atur variabel lingkungan permanen

$EDITOR ~/.profile
#add lines at the bottom of the file:  
     export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib
     export ORACLE_HOME=/usr/lib/oracle/11.2/client64
TheLazyLemur

Ubuntu Set Path Environment Variable secara permanen

#Ubuntu 20.04: It's better to put $PATH at the beginning that way
#the new path environment variable being added will append to the old one.
echo 'export PATH=$PATH:$HOME/Android/Sdk/emulator' >> ~/.bashrc

#update current shell
source ~/.bashrc
Skynet

Jawaban yang mirip dengan “ubuntu mengatur variabel lingkungan secara permanen”

Pertanyaan yang mirip dengan “ubuntu mengatur variabel lingkungan secara permanen”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya