What’s the difference between / etc / bashrc and / home / user /. Bashrc

Time:2019-12-2

What's the difference between / etc / bashrc and / home / user /. Bashrc

WeChat public address:51 yards of rural network
Professional programming Q & a community
www.51manong.com

/Etc / bashrc is provided for all users and is a global file. / home / user /. Bashrc is only for the current login user. You can see the following code in / home / user /. Bashrc.

# Source global definitions
if [ -f /etc/bashrc ]; then
    . /etc/bashrc
fi

When users log in and load / home / user /. Bashrc, they will also look for the global / etc / bashrc to load