I set an environmental variable for user on CentOS by simply:
1.) Logging in with the user
2.) Going to their home directory cd ~
and creating a file .profile
3.) Putting the following in the .profile
file:
export APP="dev"
However, when I:
echo $APP
It is blank. I have tried closing my SSH session and retying, still the same problem.