Raspberry Pi_Eng_10.3.2 Applied Priority of Profile


Published Book on Amazon


All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 1
All of IOT Starting with the Latest Raspberry Pi from Beginner to Advanced – Volume 2


출판된 한글판 도서


최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (상)
최신 라즈베리파이(Raspberry Pi)로 시작하는 사물인터넷(IOT)의 모든 것 – 초보에서 고급까지 (하)


Original Book Contents


10.3.2  Applied Priority of Profile

 

When the system is started and a particular user logs on, what is applied to the system is the final result of the various profiles integrated according to their priority. By default, the local profile has priority over the global profile, and the application profile has a higher priority than the user profile.

The applied priority is that the above has a higher priority as shown below.

 


 

If multiple profiles have the same entry, the one in the later profile will override the value in the previous profile, and the last one will be applied to the system. That is, the local profile overrides the global profile, and the application profile overrides the user profile.

The profiles used in the standard Bash are summarized as follows:

   Global profile

    Global user profile                    -- /etc/profile file

    Global application profile             -- /etc/bash.bashrc file

 

   Local profile

    Local user profile                      -- /home/pi/.profile file

    Local application profile              -- /home/pi/.bashrc file