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

Recommended Today

Java atomicinteger class using

A counter For ordinary variables, when multithreading operations are involved, classic thread safety problems will be encountered. Consider the following code: private static final int TEST_THREAD_COUNT = 100; private static int counter = 0; public static void main(String[] args) { final CountDownLatch latch = new CountDownLatch(TEST_THREAD_COUNT); Thread[] threads = new Thread[TEST_THREAD_COUNT]; for (int i = […]