Answers for "setenv path linux"

3

linux path environment variable

#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
Posted by: Guest on March-23-2022
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 "Shell/Bash"

Browse Popular Code Answers by Language