Linked Questions

1
vote
1answer
1k views

After editing both /.bashrc and /etc/bash.bashrc the path is not in the environment. Why? [duplicate]

I have installed Eclipse Oxygen;when I type export PATH=$PATH:/home/ivan/java-oxygen/eclipse in the bash, I can launch eclipse from bash from any location, however, no matter whether I add PATH=$...
0
votes
2answers
320 views

When should I use .bashrc and when .profile? [duplicate]

I am basically putting all my settings into my .bashrc and when I was using zsh it was all in my .zshrc. The Rust installer just informed me that it has added the new installation to my PATH by ...
1
vote
0answers
143 views

How Linux determines which bashrc file to load when there're multiple of them? [duplicate]

For example, in my company, there're .bashrc, .bash_profile, .bashrc.<username>. However I don't know which one is automatically loaded everytime when it's started. Does it take everything or ...
81
votes
2answers
54k views

What is the difference between interactive shells, login shells, non-login shell and their use cases? [duplicate]

Possible Duplicate: Difference between Login Shell and Non-Login Shell? I have been looking at /etc/profile. bash.bashrc to see how they are run, and notice that some are executed by non-login ...
69
votes
3answers
54k views

What is the difference between ~/.profile, ~/.bashrc, ~/.bash_profile, ~/.gnomerc, /etc/bash_bashrc, /etc/screenrc …?

Answers to the questions on SO and askubuntu, along with poking through (and reading headers of) $HOME and /etc/, indicate a number of files that can be used to set environment variables, including: ~...
43
votes
5answers
13k views

Why are interactive shells on OSX login shells by default?

In Linux and, to my knowledge, all Unix systems, terminal emulators run interactive, non-login shells by default. This means that, for bash, the started shell will: When an interactive shell that ...
5
votes
3answers
7k views

What is the purpose of .bash_logout?

The question "What is the purpose of .bashrc and how does it work?" sought the purpose and use of .bashrc. Another file with a similar name is .bash_logout. Should this file exist in the first place? ...
3
votes
3answers
740 views

What is the correct location for PS1 Shell variable?

I am following Cross-Compiled Linux From Scratch - Embedded .In [3.3. Setting Up the Environment], PS1 is declared in .bash_profile file.Practically it is never come up in Terminal. When i login as ...
5
votes
2answers
4k views

Running scp when .bashrc of remote machine includes source command

I cannot copy a file over scp when the remote machine .bashrc file includes source command to update paths and some variables. Why does it happen?
1
vote
2answers
39 views

wrong echo command

I am having a little problem with my ubuntu16.04 terminal. I wanted to have access to a data-base through the use of the : echo source /Infos/bd/config11 >> .bashrc echo source /Infos/bd/...