Well I know that I can print all environment variables but I have a hard time to work with them for the past year I always edit my .bashrc or .zshrc file and add in the end the environment variables like this
export envName=someName
but is this the best scenario?
where actually all the values from
printenv
coming from and where is the best location to store my environment variables like java/go/ etc.
1 Answer
Those variables are set in multiple places; I won't even try to list them all.
As regards appropriate places to add or modify environment variables, it depends on the purpose. Some suggestions are mentioned on the wiki page EnvironmentVariables together with a general discussion about the topic.
2