Tag Info

New answers tagged

0

Your bashrc file's location is distro-dependent... Here is a basic list for the system bashrc: /etc/bashrc (Redhat, Fedora, etc) /etc/bash.bashrc (Debian, Ubuntu, Linux Mint, Backtrack, Kali etc) /etc/bash.bashrc.local (Suse, OpenSuse, etc) Then there is the private single-user bashrc, which, for the most part is stored in ~/.bashrc for basically every ...


7

According to man bash: When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists. After reading that file, it looks for ~/.bash_profile, ~/.bash_login, and ~/.profile, in that order, and reads and executes commands ...


3

The only ones that bash looks at by default are in the user's home directory, yes. There is also typically a single source for them in Linux -- /etc/skel. The user's home directory does not need to be under /home, though. I see you've edited your question to ask where your .bash_login and .bash_profile files are. Based on the # prompt, I'm going to assume ...


3

From the manual (man bash): When a login shell exits, bash reads and executes commands from the files ~/.bash_logout and /etc/bash.bash_logout, if the files exists. There is another answer on U&L SE on login messages.



Top 50 recent answers are included