Ubuntu environment variables Store environment/user variables in Ubuntu in the file ~/.pam_environment which is targeted for this purpose. Psst..share it!Click to share on LinkedIn (Opens in new window)Click to share on Facebook (Opens in new window)Click to share on Tumblr (Opens in new window)Click to share on Skype (Opens in new window)