print environment variables linux

C++
printenv#show all variable
printenv

#result one variable
echo $LOCALAPPDATAENV_VAR="hello world"
printenv ENV_VAR
Source

Also in C++: