101-500 Deutsch 無料問題集「Lpi LPIC-1 Exam 101, Part 1 of 2, version 5.0 (101-500 Deutsch Version)」
Welche Umgebungsvariable wird von einem X11-Client verwendet, um den X-Server zu bestimmen, mit dem eine Verbindung hergestellt werden soll? (Geben Sie NUR den Variablennamen ohne vorangehende Befehle oder Werte an.)
正解:
Anzeige
Welcher umask-Wert führt zu den Standardzugriffsberechtigungen von 600 (rw -------) für Dateien und 700 (rwx ------) für Verzeichnisse?
(Geben Sie nur den numerischen Umask-Wert an.)
(Geben Sie nur den numerischen Umask-Wert an.)
正解:
0077, 077
Explanation:
The umask value that will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------ ) for directories is 077. This is because the umask value is an octal number that represents the permissions that are not given to the files or directories. To calculate the umask value, we need to subtract the desired permissions from the maximum permissions, which are 666 for files and 777 for directories. For example, if we want the files to have the permissions 600 (rw-------), which means read and write for the owner and no permissions for the group and others, we need to subtract 600 from 666, which gives us 066. Similarly, if we want the directories to have the permissions 700 (rwx------), which means read, write, and execute for the owner and no permissions for the group and others, we need to subtract 700 from 777, which gives us 077.
The umask value is the minimum of these two values, which is 077. The first digit of the umask value is for the special permissions, such as setuid, setgid, and sticky bit, and it is usually set to 0. Therefore, the final umask value is 077. For more information on how to use the umask command, you can refer to the following articles:
* What Is umask in Linux, and How Do You Use It? - How-To Geek
* Umask command in Linux with examples - GeeksforGeeks
* What is UMASK and how to set UMASK in Linux/Unix?
* How to Set and Update the Default Umask Value - phoenixNAP
Explanation:
The umask value that will result in the default access permissions of 600 (rw-------) for files and 700 (rwx------ ) for directories is 077. This is because the umask value is an octal number that represents the permissions that are not given to the files or directories. To calculate the umask value, we need to subtract the desired permissions from the maximum permissions, which are 666 for files and 777 for directories. For example, if we want the files to have the permissions 600 (rw-------), which means read and write for the owner and no permissions for the group and others, we need to subtract 600 from 666, which gives us 066. Similarly, if we want the directories to have the permissions 700 (rwx------), which means read, write, and execute for the owner and no permissions for the group and others, we need to subtract 700 from 777, which gives us 077.
The umask value is the minimum of these two values, which is 077. The first digit of the umask value is for the special permissions, such as setuid, setgid, and sticky bit, and it is usually set to 0. Therefore, the final umask value is 077. For more information on how to use the umask command, you can refer to the following articles:
* What Is umask in Linux, and How Do You Use It? - How-To Geek
* Umask command in Linux with examples - GeeksforGeeks
* What is UMASK and how to set UMASK in Linux/Unix?
* How to Set and Update the Default Umask Value - phoenixNAP
Mit welchem Befehl werden die Dateien zum Speichern von Kontingentinformationen erstellt und initialisiert?
(Geben Sie NUR den Befehl ohne Pfad oder Parameter an.)
(Geben Sie NUR den Befehl ohne Pfad oder Parameter an.)
正解:
quotacheck
Explanation:
The command that is used to create and initialize the files used to store quota information is quotacheck. This command scans one or more file systems for disk usage, creates, checks, and repairs quota files. The quota files are named aquota.user and aquota.group and are located in the root of the file system.
The quotacheck command should be run before using quotaon to enable disk quotas.
Explanation:
The command that is used to create and initialize the files used to store quota information is quotacheck. This command scans one or more file systems for disk usage, creates, checks, and repairs quota files. The quota files are named aquota.user and aquota.group and are located in the root of the file system.
The quotacheck command should be run before using quotaon to enable disk quotas.