101-500日本語 無料問題集「Lpi LPIC-1 Exam 101, Part 1 of 2, version 5.0 (101-500日本語版)」
実行中のプロセスの nice レベルを変更するコマンドは何ですか? (パスやパラメータを指定せずにコマンドのみを指定します)
正解:
レニス
Explanation:
renice コマンドは、実行中のプロセスの nice レベルを変更します。nice レベルは、プロセスのスケジューリング優先度に影響を与える値です。nice レベルが低いほど優先度が高く、nice レベルが高いほど優先度が低くなります。renice コマンドは、対象プロセスのプロセス ID (PID) と新しい nice レベルを引数として指定します。例えば、renice -n 10 1234 とすると、PID 1234 のプロセスの nice レベルが 10 に変更されます。
参考資料: LPI試験101詳細目標、トピック103: GNUおよびUnixコマンド、重み: 25、目標103.3: 基本的なファイル管理の実行、reniceコマンド
Explanation:
renice コマンドは、実行中のプロセスの nice レベルを変更します。nice レベルは、プロセスのスケジューリング優先度に影響を与える値です。nice レベルが低いほど優先度が高く、nice レベルが高いほど優先度が低くなります。renice コマンドは、対象プロセスのプロセス ID (PID) と新しい nice レベルを引数として指定します。例えば、renice -n 10 1234 とすると、PID 1234 のプロセスの nice レベルが 10 に変更されます。
参考資料: LPI試験101詳細目標、トピック103: GNUおよびUnixコマンド、重み: 25、目標103.3: 基本的なファイル管理の実行、reniceコマンド
コマンドラインにカーネルリングバッファーの内容を表示するコマンドはどれですか?
(オプションやパス情報なしでコマンド名のみを提供します)
(オプションやパス情報なしでコマンド名のみを提供します)
正解:
dmesg,
Explanation:
The command that displays the contents of the Kernel Ring Buffer on the command line is dmesg12. The dmesg command is a Linux utility that displays kernel-related messages retrieved from the kernel ring buffer12. The ring buffer stores information about hardware, device driver initialization, and messages from kernel modules that take place during system startup12. The dmesg command is invaluable when troubleshooting hardware-related errors, warnings, and for diagnosing device failure2.
The dmesg command can be used with various options to control the output format, filter the messages by facility or level, clear the ring buffer, or follow the new messages in real time123. For example, the following command displays the last 10 messages from the kernel ring buffer:
$ dmesg | tail -10
The following command displays the messages from the kernel ring buffer in a human-readable format with colored output:
$ dmesg -H --color
The following command displays the messages from the kernel ring buffer that have the facility kern and the level emerg:
$ dmesg -f kern -l emerg
The following command clears the ring buffer:
$ dmesg --clear
The following command keeps dmesg running and waiting for new messages:
$ dmesg -w
:
1: dmesg Linux Command {Syntax, Options and Examples} - phoenixNAP 2: Ubuntu Manpage: dmesg - print or control the kernel ring buffer 3: Display Recent Kernel Messages (console, kernel ring buffer, facilities)
Explanation:
The command that displays the contents of the Kernel Ring Buffer on the command line is dmesg12. The dmesg command is a Linux utility that displays kernel-related messages retrieved from the kernel ring buffer12. The ring buffer stores information about hardware, device driver initialization, and messages from kernel modules that take place during system startup12. The dmesg command is invaluable when troubleshooting hardware-related errors, warnings, and for diagnosing device failure2.
The dmesg command can be used with various options to control the output format, filter the messages by facility or level, clear the ring buffer, or follow the new messages in real time123. For example, the following command displays the last 10 messages from the kernel ring buffer:
$ dmesg | tail -10
The following command displays the messages from the kernel ring buffer in a human-readable format with colored output:
$ dmesg -H --color
The following command displays the messages from the kernel ring buffer that have the facility kern and the level emerg:
$ dmesg -f kern -l emerg
The following command clears the ring buffer:
$ dmesg --clear
The following command keeps dmesg running and waiting for new messages:
$ dmesg -w
:
1: dmesg Linux Command {Syntax, Options and Examples} - phoenixNAP 2: Ubuntu Manpage: dmesg - print or control the kernel ring buffer 3: Display Recent Kernel Messages (console, kernel ring buffer, facilities)
/proc ファイルシステムのどのファイルに、現在マウントされているすべてのデバイスのリストが含まれていますか? (パスやパラメータを指定せずにコマンドのみを指定します。)
正解:
マウント
Explanation:
/proc/mountsファイルには、システムに現在マウントされているすべてのデバイスのリストが含まれています。これはカーネルによって動的に生成される擬似ファイルであり、マウントテーブルの実際の状態を反映しています。フォーマットは/proc/mountsと同様です。
/etc/fstab とは異なり、カーネルが使用する実際のマウントオプションとファイルシステムの種類が表示されます。/proc/mounts ファイルはどのユーザーでも読み取ることができますが、変更できるのは root ユーザーのみです。/proc/mounts ファイルは /proc/self とも呼ばれます。
/mounts は、現在のプロセスのマウントファイルへのシンボリックリンクです。参考:
* /proc/mounts、/etc/mtab、/proc/partitionsファイルの理解
* Linux でマウントされたファイルシステムの完全かつ正確なリストを取得するにはどうすればよいですか?
* /proc ファイルシステム
Explanation:
/proc/mountsファイルには、システムに現在マウントされているすべてのデバイスのリストが含まれています。これはカーネルによって動的に生成される擬似ファイルであり、マウントテーブルの実際の状態を反映しています。フォーマットは/proc/mountsと同様です。
/etc/fstab とは異なり、カーネルが使用する実際のマウントオプションとファイルシステムの種類が表示されます。/proc/mounts ファイルはどのユーザーでも読み取ることができますが、変更できるのは root ユーザーのみです。/proc/mounts ファイルは /proc/self とも呼ばれます。
/mounts は、現在のプロセスのマウントファイルへのシンボリックリンクです。参考:
* /proc/mounts、/etc/mtab、/proc/partitionsファイルの理解
* Linux でマウントされたファイルシステムの完全かつ正確なリストを取得するにはどうすればよいですか?
* /proc ファイルシステム
/etc などのディストリビューション固有の設定に従ってネットワークインターフェースを有効にするコマンドは何ですか?
/etc/sysconfig/network-scripts/if cfg-erh0 の /network/interfaces? (パスやパラメータを指定せずにコマンドのみを指定してください)
/etc/sysconfig/network-scripts/if cfg-erh0 の /network/interfaces? (パスやパラメータを指定せずにコマンドのみを指定してください)
正解:
上