無料102-500日本語試験ブレーン問題集認定ガイド問題と解答
102-500日本語認定概要最新の102-500日本語PDF問題集
質問 # 87
国際化されたプログラムのメッセージの言語をポルトガル語(pt)に変更するために/ etc / bash_profileに追加されるべきコマンドはどれですか?
- A. export UI_MESSAGES = "pt"
- B. エクスポートALL_MESSAGES = "pt"
- C. export LANGUAGE = "pt"
- D. エクスポートLC_MESSAGES = "pt"
- E. export MESSAGE = "pt"
正解:D
質問 # 88
lpr を使用して印刷フィルターをバイパスするには、次のどのスイッチを使用する必要がありますか。
- A. lpr -o nofilter
- B. lpr -o 生
- C. lpr -l
- D. lpr -r
正解:C
質問 # 89
useraddで何を指定できますか? (2つ選択してください。)
- A. ユーザーがsudoを使用して実行できるコマンド。
- B. ユーザーの数値ユーザーID(UID)。
- C. ユーザーのホームディレクトリへの絶対パス。
- D. 新しいアカウントへのログインに使用されるSSHキー。
- E. 新しいユーザーが使用できるプリンター。
正解:B、C
質問 # 90
/ etc / profileファイルの目的は何ですか?
- A. ユーザーがログインしたときに設定される環境変数が含まれています。
- B. ログイン後に表示されるウェルカムメッセージが含まれています。
- C. アプリケーションを初めて実行するユーザーのデフォルトのアプリケーションプロファイルが含まれています。
- D. ログインが許可されているユーザーを定義するセキュリティプロファイルが含まれています。
正解:A
解説:
The file /etc/profile is a configuration file that is read by the Bash shell when a user logs in. It contains commands and settings that apply to all users of the system, such as environment variables, PATH information, terminal settings, and security commands. Environment variables are variables that affect the behavior of programs and processes. For example, the PATH variable defines the directories where the shell looks for executable files, and the JAVA_HOME variable defines the location of the Java installation. The
/etc/profile file can also source other files from the /etc/profile.d/ directory, which can contain additional scripts for setting environment variables or other system-wide settings. The /etc/profile file is not the only file that can set environment variables for a user. There are also user-specific files, such as
~/.profile,~/.bash_profile, and ~/.bashrc, that are read by the shell after /etc/profile. These files can override or append to the settings in /etc/profile, or define new variables for the user. The order and precedence of these files depend on the type of shell (login or interactive) and the options used to start the shell. You can learn more about the difference between these files here1 and here2. References:
https://www.thegeekdiary.com/understanding-etc-profile-configuration-file-in-linux/
https://unix.stackexchange.com/questions/704610/what-does-the-etc-profile-do
質問 # 91
通常のユーザーのワークステーションでは、routeコマンドはルーティングテーブルを出力するまでに時間がかかります。
次のエラーのどれがそれを示していますか?
- A. デフォルトではルートがルーターと宛先の名前を解決しようとし、タイムアウトになる可能性があるため、DNS解決が機能していない可能性があります。
- B. 誤って複数のデフォルトルーターが存在する可能性があります。その場合、デフォルトとして1つのルーターを選択するには、ネットワーク上でデフォルトルーターの選択を行わなければなりません。
- C. ルーティングテーブル内のルーターの1つが利用できないため、自動ルーター障害検出メカニズム(ARF-D)がタイムアウトを待ちます。
- D. ローカルルーティング情報が破損している可能性があり、ルーティングプロトコルを使用して再検証する必要があります。
正解:A
解説:
The route command displays the kernel's routing table, which contains information about how packets are routed to different destinations. By default, route tries to resolve the IP addresses of the routers and destinations to their hostnames using DNS. If DNS is not working properly, this can cause a delay in displaying the routing table as route waits for the DNS queries to time out. To avoid this, route can be used with the -n option, which prevents DNS lookups and displays only numeric addresses. References:
* LPI 102-500 Exam Objectives, Topic 109: Network Fundamentals, 109.3 Basic network troubleshooting
* LPI 102-500 Study Guide, Chapter 9: Network Troubleshooting, Section 9.2: Troubleshooting Routing Problems
質問 # 92
Linuxサーバーで印刷を構成した後、管理者はいずれかのプリンターにテストファイルを送信すると印刷に失敗します。プリンタのキューの状態を表示するために使用できるコマンドは何ですか? (パスまたはパラメーターを指定せずにコマンドのみを指定してください。)
正解:
解説:
lpq, /usr/bin/lpq, lpstat, /usr/bin/lpstat
Explanation:
The command lpq can be used to display the status of the printer's queue on a Linux server.
The lpq command is part of the cups-bsd package, which provides the Berkeley commands for CUPS (Common UNIX Printing System), the standard printing system for Linux.
The lpq command shows the status of a specified printer or the default printer if none is specified. It also lists thejobs that are queued for printing, along with their job IDs, owners, sizes, and names12.
For example, to display the status of the printer lp1, we can use the following command:
$ lpq -P lp1
lp1 is ready
Rank Owner Job File(s) Total Size
active user1 123 test.txt 1024 bytes
1st user2 124 report.pdf 2048 bytes
The output shows that the printer lp1 is ready, and that there are two jobs in the queue, one of which is active and the other is waiting. The output also shows the owners, job IDs, file names, and sizes of the jobs. To display the status of all printers, we can use the -a option:
$ lpq -a
lp1 is ready
Rank Owner Job File(s) Total Size
active user1 123 test.txt 1024 bytes
1st user2 124 report.pdf 2048 bytes
lp2 is ready
no entries
The output shows that there are two printers, lp1 and lp2, and that lp2 has no entries in the queue. To display more information about the jobs, such as the priority, submission time, and status, we can use the -l option:
$ lpq -l -P lp1
lp1 is ready
Rank Owner Job File(s) Total Size
active user1 123 test.txt 1024 bytes
priority 50 Apr 27 10:00 processing since Apr 27 10:01
1st user2 124 report.pdf 2048 bytes
priority 50 Apr 27 10:05 waiting for lp1
The output shows that the jobs have the same priority, and that the first job is processing while the second job is waiting. The lpq command can be useful for troubleshooting printing problems, such as checking if the printer is ready, if there are any stuck or failed jobs, or if there are any conflicts or delays in the queue34.
References: 1: lpq(1) - Linux manual page 2: How to Use the lp Command in Linux to Print Files From Terminal - Make Tech Easier 3: Linux sysadmin printing reference guide - PenguinTutor 4: How to manage print jobs on Linux - Network World
質問 # 93
次の行のどれがDISPLAY環境変数の正しい設定の例ですか?
- A. ホスト名/表示番号
- B. hostname:displayname
- C. ホスト名/表示名
- D. ホスト名:表示番号
- E. ホスト名
正解:D
解説:
The correct format for the DISPLAY environment variable is hostname:displaynumber.screennumber, where hostname is the name of the computer where the X server runs, displaynumber is a sequence number (usually
0) that identifies a display, and screennumber is the number of the screen within that display (usually 0). The screennumber can be omitted if it is 0. For example, localhost:0 or myhost:1.0 are valid values for the DISPLAY variable. The other options are either missing the colon, using the wrong separator, or not specifying the display number. References:
* X11 - DISPLAY (environment variable) - Datacadamia
* x11 - How can I specify a display? - Stack Overflow
* What is the $DISPLAY environment variable? - Ask Ubuntu
質問 # 94 
- A. Option D
- B. Option A
- C. Option C
- D. Option B
- E. Option E
正解:D、E
質問 # 95 
- A. Option D
- B. Option C
- C. Option A
- D. Option B
- E. Option E
正解:B、D
質問 # 96
空白を埋める
実行中の ssh-agent インスタンスに OpenSSH 秘密鍵を追加するには、どのコマンドを使用しますか? (パスを指定せずにコマンド名のみを指定してください。)
正解:
解説:
ssh-add
質問 # 97
次のコマンドについて正しいのはどれですか?
nmcli デバイス wifi 接続 WIFIoI
- A. NetworkManager は、新しい Wi-Fi 接続 WIFIoI を作成し、有効にします。
- B. NetworkManager は、SSID WIFIoI で新しいパブリック ホットスポットを開きます。
- C. NetworkManager は、WIFIoI という名前の未構成の新しい仮想ネットワーク インターフェイスを作成します。
- D. WIFIoI が無効な wifi デバイスであるため、NetworkManager はエラーを返します。
- E. 接続 WIFIoI が存在しない場合、NetworkManager はエラーを返します。
正解:A
質問 # 98 
正解:
解説:
質問 # 99
次のうちどれがすべての定義されたシェル変数を一覧表示するための最良の方法ですか?
- A. 設定
- B. エコー$ ENV
- C. env
- D. env -a
正解:A
解説:
The set command is used to display or modify the shell variables and functions in the current shell. When used without any arguments, it prints the names and values of all shell variables, including environment variables and user-defined variables, in alphabetical order. The output also includes the shell options and the positional parameters. The set command can be used in any POSIX-compliant shell, such as bash, zsh, ksh, etc123.
The other options are not correct because:
* env is used to print or modify the environment variables, not the shell variables. It does not show the user-defined variables or the shell options. It can also be used to run a command in a modified environment45.
* env -a is an invalid option for the env command. The -a option is not supported by the env command in any standard or common implementation45.
* echo $ENV is used to print the value of the environment variable ENV, not the list of all shell variables.
The ENV variable is usually set to the name of a file that contains commands or aliases to be executed by the shell. It is mainly used by the ksh and some versions of bash .
References: 1: How can I list all shell variables? - Unix & Linux Stack Exchange 2: 2.1 Command Line Basics - Linux Professional Institute Certification ... 3: set - The Open Group Base Specifications Issue 7,
2018 edition 4: How to set and list environment variables on Linux 5: env - The Open Group Base Specifications Issue 7, 2018 edition : What is the difference between .bash_profile and .bashrc? - Unix & Linux Stack Exchange : ENV - The Open Group Base Specifications Issue 7, 2018 edition
質問 # 100 
正解:
解説:
質問 # 101
/etc/syslog.conf の次のエントリのうち、すべてのメール関連イベントをファイル /var/log/ に書き込み、すべての重要なイベントをリモート サーバー logger.example.com に送信するのはどれですか? メールログ
- A. mail.*
/var/log/maillog
mail,crit @logger.example.org - B. mail
/var/log/maillog
mail.crit @logger.example.org - C. mail.*
/var/log/maillog
mail.crit syslog://logger.example.org - D. mail.*
/var/log/maillog
mail.crit @logger.example.org - E. mail *
/var/log/maillog
mail crit @logger.example.org
正解:D
質問 # 102
次の状況のうち、NTP クライアントによって監視および修正されるのはどれですか?
- A. 物理的な場所とタイムゾーンの構成。
- B. システム クロックとコンピュータのハードウェア クロックとの間の時間のずれ。
- C. システム クロックと基準クロックの間の時間のずれ。
- D. 現在のコンピューターの場所のタイム ゾーンの変更。
- E. サマータイムをサポートするために必要な調整。
正解:C
質問 # 103
......
ベストなLpi 102-500日本語学習ガイドと問題集には2024:https://www.passtest.jp/Lpi/102-500J-shiken.html