From the course: Linux Tips

Unlock this course with a free trial

Join today to access over 22,500 courses taught by industry experts.

Environment configuration files

Environment configuration files - Linux Tutorial

From the course: Linux Tips

Environment configuration files

- [Instructor] When you open up a Shell, there's a series of files that help to set up the environment for you. Generally speaking, these files are divided into two categories, those that open up with a login Shell, which is the first Shell that you get when you connect via SSH or through a console, and non-login Shells, which are those that you open up after or within the login Shell. Usually these are both interactive Shells where you can type things and get a response. There are also non-interactive Shells. But we don't use them directly, in large part because we can't use them directly. When we start a login shell, the system reads from /etc/profile and then it looks for one of three files in the user's home folder; ~/.bash_profile, ~/.bash_login, or ~/.profile. Bash will stop once it finds one of these files in this order and ignore the rest. So keep that in mind if you're trouble shooting your Bash profile settings. When we open a Non-Login Shell, Bash runs /etc/bash.bashrc and…

Contents