How Do I Permanently Export an Environment Variable in Linux?
Contents How Do I Permanently Set an Environment Variable in Linux? to Make Permanent Changes to the Environment Variables for All New Accounts, Go to Your...
Contents
How do I permanently set an environment variable in Linux?
To make permanent changes to the environment variables for all new accounts, go to your /etc/skel files, such as . bashrc , and change the ones that are already there or enter the new ones. When you create new users, these /etc/skel files will be copied to the new user’s home directory.
How do I permanently set environment variables in Ubuntu?
1 Answer
- Open a terminal window with Ctrl + Alt + T .
- Open the file for editing with gedit ~/.profile.
- Add the command to the bottom of the file.
- Save and close gedit.
- Log out and log in again.