show environment variables linux code example
Example 1: show ip address linux
$ hostname -I
Example 2: show env in bash
#show all variable
printenv
#result one variable
echo $LOCALAPPDATA
Example 3: print environment variables linux
ENV_VAR="hello world"
printenv ENV_VAR
Example 4: linux set environment
# syntax
# setenv SHELL *<filepath-of-file-containing-environment-settings>
# example
setenv SHELL /usr/bin/bash