Lpi LPIC-1 Exam 101, Part 1 of 2, version 5.0 (101-500日本語版) - 101-500日本語 模擬練習
RPMパッケージカーネルをインストールせずにダウンロードするには、次のどのコマンドを使用できますか?
正解: A
解説: (PassTest メンバーにのみ表示されます)
スクリプトの最初の行にある #! で始まるステートメントに関して正しいのは何ですか? (正しい答えを 2 つ選択してください。)
正解: A,B
どのumask値を使用すると、ファイルのデフォルトのアクセス許可は600(rw -------)、ディレクトリの場合は700(rwx ------)になりますか?
(umask数値のみを指定します。)
(umask数値のみを指定します。)
正解:
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
useradd のどのオプションを使用すると、新しいユーザーのホーム ディレクトリが作成され、一連の標準ファイルがプロビジョニングされますか?
(値やパラメータを指定せずにオプション名のみを指定します。)
(値やパラメータを指定せずにオプション名のみを指定します。)
正解:
-m
新しいプロセスを実行するときに、通常のユーザーがniceコマンドを使用してプロセスに割り当てることができる最大のniceness値は何ですか?
正解: A
解説: (PassTest メンバーにのみ表示されます)
ssh は SSH エージェントと対話するためにどのメカニズムを使用しますか?
正解: B
新しいext4ファイルシステムでのrootユーザーの予約スペースのデフォルトの割合はどれですか?
正解: A
解説: (PassTest メンバーにのみ表示されます)
Locateプログラムで使用されるデータベースを更新するプログラムはどれですか?
正解:
updated
Explanation:
The program that updates the database that is used by the locate command is updatedb. The updatedb command creates or updates a database of filenames and directories that can be searched by the locate command. The updatedb command is usually run daily by cron to update the default database, which is stored in /var/lib/mlocate/mlocate.db. The updatedb command can also take some options, such as the filesystem type, the prune list, and the output file. For more information, see the updatedb man page1 or the Ubuntu man page2.
Explanation:
The program that updates the database that is used by the locate command is updatedb. The updatedb command creates or updates a database of filenames and directories that can be searched by the locate command. The updatedb command is usually run daily by cron to update the default database, which is stored in /var/lib/mlocate/mlocate.db. The updatedb command can also take some options, such as the filesystem type, the prune list, and the output file. For more information, see the updatedb man page1 or the Ubuntu man page2.
次のコマンドのうち、SetUID ビットが設定されている、ルートが所有するすべてのファイルを検索するものはどれですか。
正解: D
ユーザーのホームディレクトリにあるファイル .profile について正しいのは何ですか?
正解: C
次のプロトコルのうち、仮想マシンのビデオ カード出力にアクセスするために設計されているものはどれですか。
正解: A
通常モードinviの場合、どの文字を使用してテキストの逆検索を開始できますか?
正解: A
解説: (PassTest メンバーにのみ表示されます)