最新的Lpi LPIC-1 Exam 101, Part 1 of 2, version 5.0 - 101-500免費考試真題
The /etc/_______ file lists currently mounted devices.
正確答案:
mtab
Explanation:
The /etc/mtab file is a system-generated file that lists all the currently mounted devices and their mount options. It is updated automatically by the mount and umount commands. It can be used to check which devices are mounted and where, as well as their filesystem type and mount options. The /etc/mtab file has the same format as the /etc/fstab file, which is a user-edited file that lists the devices that should be mounted at boot time or on demand. References:
* LPIC-1 Exam 101 Objectives, Topic 101: System Architecture, 101.1 Determine and configure hardware settings, Key Knowledge Areas, The following is a partial list of the used files, terms and utilities: /etc/mtab
* LPIC-1 101-500 Exam Prep, Section 1: System Architecture, Lesson 1.1: Determine and Configure Hardware Settings, Video: 1.1.4 Mounting and Unmounting Filesystems, Transcript: The /etc/mtab file is a system-generated file that lists all the currently mounted devices and their mount options.
Explanation:
The /etc/mtab file is a system-generated file that lists all the currently mounted devices and their mount options. It is updated automatically by the mount and umount commands. It can be used to check which devices are mounted and where, as well as their filesystem type and mount options. The /etc/mtab file has the same format as the /etc/fstab file, which is a user-edited file that lists the devices that should be mounted at boot time or on demand. References:
* LPIC-1 Exam 101 Objectives, Topic 101: System Architecture, 101.1 Determine and configure hardware settings, Key Knowledge Areas, The following is a partial list of the used files, terms and utilities: /etc/mtab
* LPIC-1 101-500 Exam Prep, Section 1: System Architecture, Lesson 1.1: Determine and Configure Hardware Settings, Video: 1.1.4 Mounting and Unmounting Filesystems, Transcript: The /etc/mtab file is a system-generated file that lists all the currently mounted devices and their mount options.
Which of the following options for the kernel's command line changes the systemd boot target to rescue.target instead of the default target?
正確答案: B
Which command reads and displays the current contents of the Kernel Ring Buffer on the command line?
(Specify ONLY the command without any path or parameters.)
(Specify ONLY the command without any path or parameters.)
正確答案:
dmesg
Explanation:
The dmesg command is used to print or control the kernel ring buffer. The kernel ring buffer is a special kind of buffer that stores the messages generated by the kernel, such as the boot messages, the hardware errors, the driver information, etc. The kernel ring buffer is a fixed-size circular buffer, which means that when it is full, the oldest messages are overwritten by the new ones. The dmesg command can show the messages in the kernel ring buffer, as well as filter, save, or clear them. The syntax of the dmesg command is:
dmesg [options]
The options are optional, and they can modify the behavior of the dmesg command, such as changing the output format, the timestamp, the level, the facility, the color, etc. For more information, see the dmesg man page1 or the Linuxize tutorial2.
Explanation:
The dmesg command is used to print or control the kernel ring buffer. The kernel ring buffer is a special kind of buffer that stores the messages generated by the kernel, such as the boot messages, the hardware errors, the driver information, etc. The kernel ring buffer is a fixed-size circular buffer, which means that when it is full, the oldest messages are overwritten by the new ones. The dmesg command can show the messages in the kernel ring buffer, as well as filter, save, or clear them. The syntax of the dmesg command is:
dmesg [options]
The options are optional, and they can modify the behavior of the dmesg command, such as changing the output format, the timestamp, the level, the facility, the color, etc. For more information, see the dmesg man page1 or the Linuxize tutorial2.
In Bash, inserting 2>&1 after a command redirects:
正確答案: B
說明:(僅 Fast2test 成員可見)
Which of the following statements describes a difference between GNU GRUB Legacy and GRUB 2?
正確答案: B
說明:(僅 Fast2test 成員可見)
Which of the following options is used in a GRUB Legacy configuration file to define the amount of time that the GRUB menu will be shown to the user?
正確答案: C
說明:(僅 Fast2test 成員可見)
In compliance with the FHS, in which of the directories are man pages found?
正確答案: B
說明:(僅 Fast2test 成員可見)
Which world-writable directory should be placed on a separate partition in order to prevent users from being able to fill up the / filesystem? (Specify the full path to the directory.)
正確答案: E
說明:(僅 Fast2test 成員可見)
Which of the following commands will write a message to the terminals of all logged in users?
正確答案: D
說明:(僅 Fast2test 成員可見)
Which of the following commands will reduce all consecutive spaces down to a single space?
正確答案: A
說明:(僅 Fast2test 成員可見)
Which of the following files is not read directly by a Bash login shell?
正確答案: A