最新的Lpi LPIC-1 Exam 102, Part 2 of 2, version 5.0 (102-500日本語版) - 102-500日本語免費考試真題

午後3時から月に3回、スクリプトchklogを実行するための正しいcrontabエントリー。午後5時:

正確答案: E
說明:(僅 Fast2test 成員可見)
echo $$ コマンドとは何ですか?

正確答案: D
說明:(僅 Fast2test 成員可見)
次のnmcliサブコマンドのうちどれが存在しますか? (2つ選択してください。)

正確答案: D,E
說明:(僅 Fast2test 成員可見)
次のcrontabエントリのどれが日曜日の毎時30分過ぎてmyscriptを実行するのでしょうか?

正確答案: B
說明:(僅 Fast2test 成員可見)
環境変数のスコープ内から実行されるコマンドのタイムゾーンを変更するためにどの環境変数を設定する必要がありますか? (変数名だけを指定してください。)
正確答案:
TZ
Explanation:
The TZ environment variable is used to change the time zone for the commands run from within the environment variable's scope. It specifies the name of a time zone as defined in the /usr/share/zoneinfo directory or a custom time zone in the POSIX format12. The TZ variable can be set either globally in a shell profile file or locally in a shell session. For example, to set the time zone to America/New_York for the current shell session, one can use the following command:
export TZ=America/New_York
To verify the change, one can use the date command to display the current date and time according to the TZ variable. The TZ variable can also be used to run a single command with a different time zone without affecting the system's time zone. For example, to run the date command with the Asia/Tokyo time zone, one can use the following syntax:
TZ=Asia/Tokyo date
The TZ variable is useful for testing how applications behave in different time zones or for displaying the time in different locations34. Reference:
How to Set or Change the Time Zone in Linux | Linuxize
Linux / UNIX: TZ Environment Variable - nixCraft
Get Current System Time Zone in Linux | Baeldung on Linux
Setting the TZ Environment Variable on Linux | InterSystems Developer
システムのタイムゾーンを正しく構成することが重要なのはなぜですか?

正確答案: B
說明:(僅 Fast2test 成員可見)
script./myscriptのみを実行するために、既存の環境変数FOOBARをどのように抑制することができますか?

正確答案: D
說明:(僅 Fast2test 成員可見)
ユーザーが使用できるメモリ量を制限するために使用できるコマンドは次のどれですか?

正確答案: B
說明:(僅 Fast2test 成員可見)
空欄を埋めてください
________ コマンドは、システムにグループを追加するために使用されます。
正確答案:
groupaddusrsbingroupadd
Explanation:
The groupadd command creates a new group using the options specified on the command line and the default values from the /etc/login.defs file. It adds an entry for the new group to the /etc/group and /etc/gshadow files. Only the root user or a user with sudo privileges can create new groups using this command. The general syntax for the groupadd command is as follows:
groupadd [OPTIONS] GROUPNAME
Some of the common options for the groupadd command are:
-g, --gid GID: Specify the numeric group ID for the new group. If not given, the system will assign the next available GID from the range of group IDs specified in the login.defs file.
-r, --system: Create a system group with a GID chosen from the range of system group IDs specified in the login.defs file. System groups are usually used for some special system operation purposes, like creating backups or doing system maintenance.
-f, --force: Suppress the error message if the group already exists and exit successfully. This option is useful for scripts that need to ensure the existence of a group.
-K, --key KEY=VALUE: Override the default values from the /etc/login.defs file. The valid keys are GROUP_MIN_ID, GROUP_MAX_ID, SYS_GROUP_MIN_ID, SYS_GROUP_MAX_ID, and GID_INCREMENT.
Reference:
https://linuxize.com/post/how-to-create-groups-in-linux/
https://linuxhandbook.com/groupadd-command/
発行後:
関数myfunction {echo $ 1 $ 2; }
Bashでは、出力は次のようになります。
myfunction A B C
作物?

正確答案: A
說明:(僅 Fast2test 成員可見)

聯系我們

如果您有任何問題,請留下您的電子郵件地址,我們將在12小時內回复電子郵件給您。

我們的工作時間:( GMT 0:00-15:00 )
週一至週六

技術支持: 立即聯繫 

English 日本語 Deutsch 한국어