What command can I use to find out which file lists environment variables, as a user? It is not in ~/.bash_profile or ~/.bashrc.
Thanks
What command can I use to find out which file lists environment variables, as a user? It is not in ~/.bash_profile or ~/.bashrc.
Thanks
Most of these things are going to be dynamic. You can get a look at the current environment by doing:
env | less
You can add environment variables into your session on bash startup by modifying ~/.bashrc and placing variables at the end of the file.
export PATH=$PATH:/home/user/custom_path
export CUSTOM_ENV_VARIABLE=somevalue