Linked Questions
11 questions linked to/from What is the purpose of .bashrc and how does it work?
10
votes
2
answers
11k
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
1
answer
2k
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=$...
1
vote
0
answers
675
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 ...
354
votes
4
answers
89k
views
What does "rc" in .bashrc stand for?
Is it "resource configuration", by any chance?
77
votes
3
answers
73k
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:
~/...
27
votes
3
answers
36k
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? ...
6
votes
3
answers
7k
views
What is the correct location for PS1 shell variable?
I am following Cross-Compiled Linux From Scratch - Embedded.
In section 3.3 "Setting Up the Environment", PS1 is declared in .bash_profile.
When I log in as su - clfs, both .bash_profile and ...
0
votes
1
answer
2k
views
command in .bashrc is being executed twice
I am using .bashrc to execute a python script on system boot:
sudo -u pi python3 /path/to/script.py
and then I add @lxterminal to file /etc/xdg/lxsession/LXDE-pi/autostart to make sure a terminal ...
0
votes
1
answer
3k
views
Variables are deleted after the session is closed [duplicate]
When adding a variable in export
The variable is deleted automatically upon the end of the cli session or the closing of wsl
abdalla@DESKTOP-9IC0VL5:/mnt/c/Users/hp$ export desk=/mnt/c/Users/hp/...
1
vote
2
answers
293
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/...
0
votes
2
answers
195
views
Circular reference in bash profile. How to sign in? [duplicate]
I was editing my .bash_profile and .bash_login, and I accidentally added a circular reference so that two files were including each other. After closing the session and trying to sign in again, the ...