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
There are many files and programs installed in the Raspberry Pi system. When working on the system, these items mutually interact with each other under certain control, and the necessary work is done. The results will vary depending on which files and which programs is used when you perform certain tasks. Therefore, in order for the system to operate consistantly, it is necessary to control the user's working environment by instructing the system which program to use, which data to use, and how to operate.
However, the way these systems operate is not always fixed as one, but it may want different functions depending on the installed individual system, or it may be desired to operate differently depending on the person who uses it. Therefore, the Raspberry Pi system does not fix the operation method as one, but it provides the flexibility to perform various kinds of processing in various ways. What you use for this case is the profile.
When the system is started and a particular user logs on, a profile is used to determine the user's working environment, such as determining the overall appearance of the system, controlling the way certain operations are performed, and determining how to handle certain commands.
There are two kinds of profiles: global profile and local profile.
● Global profile
The global profile is a profile applied system-wide, which means that it applies equally to all users. If you specify this profile differently on a particular computer, that computer will behave differently from the others. Also, any changes you make here will affect all users.
The global profile is defined system-wide, and the defined values are usually managed in "/etc/" directory.
In the global profile, there are a global user profile that is independent of the application and a global application profile that is defined by the application.
A global user profile is a profile that applies equally to all applications in the system, regardless of the type of executed application. This profile defines the contents in "/etc/profile" file.
On the other hand, the global application profile is a system-wide profile for a specific application. They are usually defined in "/etc/" directory in a file of the form "xxxx.xxxxxrc". The profile used in the standard BASH Shell defines contents in "/etc/bash.bashrc" file.
● Local profile
A local profile is also called a user profile, which is a profile that applies only to a specific user account. This profile can only be used when a particular user has logged on, and the information you specify here does not apply to other users, so you can use this profile when you want to define different behaviors of the system depending on the user.
The local profile is defined separately for each user, and the value defined for each user is stored in the user's home directory. Each user's home directory has a number of hidden files in the form ".xxxx" or ".xxxxxrc", which are referred to as the local Shell profile overrider file. These are the profiles that are used to set specific environment settings for each user basis in Shell programs or other programs.
In this local profile, there are a local user profile that is independent of the application and a local application profile that is defined by the application.
The local user profile is the profile that applies equally to the entire application of a particular user regardless of the application. This profile defines the contents in ".profile" hidden file in the home directory.
On the other hand, the local application profile is a profile that applies to a specific application of a specific user. They are usually defined in a hidden file in the form ".xxxxxrc" in the home directory. The local profile used in the standard BASH Shell is defined in ".bashrc" file in each user's home directory.