show all environment variables linux code example
Example 1: show env in bash
#show all variable
printenv
#result one variable
echo $LOCALAPPDATA
Example 2: linux get all env variables
printenv
printenv | less
printenv | more
#show all variable
printenv
#result one variable
echo $LOCALAPPDATA
printenv
printenv | less
printenv | more