101-500日本語 無料問題集「Lpi LPIC-1 Exam 101, Part 1 of 2, version 5.0 (101-500日本語版)」
viエディターで、viコマンドは、カーソル位置の現在の行とそれに続く16行(合計17行)からコピーします(貼り付けません)。
スペースなしで正しいviコマンドを指定します。
スペースなしで正しいviコマンドを指定します。
正解:
17yy
Explanation
The vi editor is a text editor that operates in two modes: command mode and insert mode. In command mode, the user can enter commands to perform various operations on the text, such as copying, pasting, deleting, moving, searching, etc. In insert mode, the user can type text into the file. To switch from command mode to insert mode, the user can press i, a, o, or other keys. To switch from insert mode to command mode, the user can press Esc. The yy command is used to copy (yank) the current line into a buffer. The number before the yy command specifies how many lines to copy, starting from the current line. Therefore, the command 17yy will copy the current line and the following 16 lines (17 lines total) into a buffer. The buffer can then be pasted into another location by using the p or P command. Note that the command 17yy does not paste the copied lines, it only copies them. References:
* LPI 101-500 Exam Objectives, Topic 103.8, Weight 4
* LPI Learning Materials, Chapter 3.8, Advanced Scripting
* Web Search Results, 1
Explanation
The vi editor is a text editor that operates in two modes: command mode and insert mode. In command mode, the user can enter commands to perform various operations on the text, such as copying, pasting, deleting, moving, searching, etc. In insert mode, the user can type text into the file. To switch from command mode to insert mode, the user can press i, a, o, or other keys. To switch from insert mode to command mode, the user can press Esc. The yy command is used to copy (yank) the current line into a buffer. The number before the yy command specifies how many lines to copy, starting from the current line. Therefore, the command 17yy will copy the current line and the following 16 lines (17 lines total) into a buffer. The buffer can then be pasted into another location by using the p or P command. Note that the command 17yy does not paste the copied lines, it only copies them. References:
* LPI 101-500 Exam Objectives, Topic 103.8, Weight 4
* LPI Learning Materials, Chapter 3.8, Advanced Scripting
* Web Search Results, 1
/ procファイルシステムのどのファイルに、ブートローダーからカーネルに渡されたパラメーターがリストされていますか?
(ファイル名はパスなしでのみ指定してください。)
(ファイル名はパスなしでのみ指定してください。)
正解:
cmdline
Explanation
The file in the /proc filesystem that lists the parameters passed from the bootloader to the kernel is
/proc/cmdline. This file contains a single line of text that shows the command line arguments that were used to boot the kernel. These arguments can include various options, such as the root device, the init process, the console device, and more. The /proc/cmdline file is read-only and cannot be modified at runtime. The parameters in this file are determined by the bootloader configuration, such as GRUB or LILO, and can be changed by editing the corresponding files12.
References: 1: The /proc Filesystem - The Linux Kernel documentation 2: passing bootloader arguments to the kernel - Unix & Linux Stack Exchange
Explanation
The file in the /proc filesystem that lists the parameters passed from the bootloader to the kernel is
/proc/cmdline. This file contains a single line of text that shows the command line arguments that were used to boot the kernel. These arguments can include various options, such as the root device, the init process, the console device, and more. The /proc/cmdline file is read-only and cannot be modified at runtime. The parameters in this file are determined by the bootloader configuration, such as GRUB or LILO, and can be changed by editing the corresponding files12.
References: 1: The /proc Filesystem - The Linux Kernel documentation 2: passing bootloader arguments to the kernel - Unix & Linux Stack Exchange
どのコマンドを使用して、クォータ情報の保存に使用するファイルを作成および初期化しますか?
(パスまたはパラメーターなしでコマンドのみを指定します。)
(パスまたはパラメーターなしでコマンドのみを指定します。)
正解:
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.