Where to find the environmental variables file in CentOS

centos6.6environment-variables

Where can I find the envvars configuration file (if there are any) in CentOS?

I know in Ubuntu, Apache2, I can find it from /etc/apache2/envvars

I've tried the command,

export EXAMPLE=value command. Does it require server restart to get it affected?

Please advise, thanks in advance 🙂

Best Answer

Global Environment variable file is :- /etc/profile

Local Environment Variable ( User Specific ) file is :- ~/.bash_profile