Understanding the Configuration Files
As we’ve already seen, you can set environmental variables from the command-line. But, any variables you set in this manner will only last for the duration of the command-line session. When you log out of the system or close the terminal emulator window, any environmental changes that you’ve made from the command-line will be lost.
What if we want to make these changes permanent? There are several configuration files that we can edit to save our changes. Some are global and will affect all users, while others will only affect an individual user. The slightly tricky part is that the files differ from one Linux distro to the next. Let’s start by looking at the bash
configuration files on Fedora. After that, we’ll move on to Debian.
bash Global Configuration Files on Fedora
As we’ve already seen, there are global configuration files in the /etc/
directory, and users’ configuration files in each...