
結果を保証するには最新2026年03月無料Lpi 101-500で練習しよう
有効な問題最新版を無料で試そう101-500試験問題集解答
質問 # 174
Which of the following command lines creates or, in case it already exists, overwrites a file called data with the output of ls?
- A. ls 3> data
- B. ls >> data
- C. ls > data
- D. ls >& data
正解:C
解説:
Explanation
The command line that will create or, in case it already exists, overwrite a file called data with the output of ls is ls > data. The > character is a redirection operator that redirects the standard output (STDOUT) of a command to a file. If the file does not exist, it will be created. If the file already exists, it will be overwritten.
The 3> character is not a valid redirection operator. The >& character is a redirection operator that redirects both standard output (STDOUT) and standard error (STDERR) of a command to a file. The >> character is a redirection operator that appends the standard output (STDOUT) of a command to a file, without overwriting the existing file contents. References: LPI Exam 101 Detailed Objectives, Topic 103: GNU and Unix Commands, Weight: 25, Objective 103.3: Perform basic file management, Redirection
質問 # 175
When in Normal mode in vi, which character can be used to begin a reverse search of the text?
- A. ?
- B. /
- C. F
- D. r
- E. s
正解:A
質問 # 176
What is contained on the EFI System Partition?
- A. The default swap space file
- B. The user home directories
- C. The Linux root file system
- D. The Linux default shell binaries
- E. The first stage boot loader
正解:E
質問 # 177
What output will be displayed when the user fred executes the following command?
echo 'fred $USER'
- A. 'fred $USER'
- B. fred fred
- C. fred $USER
- D. fred /home/fred/
- E. 'fred fred'
正解:B
質問 # 178
In which directory must definition files be placed to add additional repositories to yum?
正解:
解説:
/etc/yum.repos.d
/etc/yum.repos.d/
yum.repos.d
yum.repos.d/
質問 # 179
A user accidentally created the subdirectory \dir in his home directory. Which of the following commands will remove that directory?
- A. rmdir ~/\\dir
- B. rmdir "~/\dir"
- C. rmdir ~/\dir
- D. rmdir '~/\dir'
- E. rmdir ~/'dir'
正解:A
解説:
Explanation
The rmdir command removes an empty directory. To remove a directory whose name contains a backslash, the backslash must be escaped with another backslash. Therefore, the correct command is rmdir ~/\dir. The other commands will either fail to find the directory or interpret the backslash as part of a path name. References:
* [LPI Linux Essentials - 1.3 Basic Editing]
* [LPI Linux Essentials - 1.4 I/O Redirection]
* [LPI Linux Essentials - 1.5 Manage Simple Partitions and Filesystems]
質問 # 180
What information can the lspci command display about the system hardware? (Choose THREE correct answers.)
- A. System battery type
- B. Device vendor identification
- C. PCI bus speed
- D. Device IRQ settings
- E. Ethernet MAC address
正解:B、C、D
解説:
The lspci command can display information about the system hardware, such as:
* Device IRQ settings1: The lspci command can show the interrupt request (IRQ) number assigned to each device by using the -v option. The IRQ number indicates how the device communicates with the CPU.
* PCI bus speed2: The lspci command can show the speed of the PCI bus by using the -vv option. The speed is expressed in megahertz (MHz) or gigahertz (GHz) and indicates how fast the data can be transferred between the device and the bus.
* Device vendor identification3: The lspci command can show the name and identification number of the device vendor by using the -n or -nn option. The vendor identification helps to identify the manufacturer and model of the device.
1: https://www.man7.org/linux/man-pages/man8/lspci.8.html 2: https://phoenixnap.com/kb/lspci- command 3: https://en.wikipedia.org/wiki/Lspci
質問 # 181
Which of the following commands creates an ext3 filesystem on /dev/sdb1? (Choose TWO correct answers.)
- A. /sbin/mkfs -t ext3 /dev/sdb1
- B. /sbin/mke3fs -j /dev/sdb1
- C. /sbin/mkfs -c ext3 /dev/sdb1
- D. /sbin/mke2fs -j /dev/sdb1
正解:A、D
解説:
The correct commands to create an ext3 filesystem on /dev/sdb1 are /sbin/mke2fs -j /dev/sdb1 and /sbin/mkfs - t ext3 /dev/sdb1. These commands format the partition /dev/sdb1 with the ext3 filesystem type. The first command uses the mke2fs utility with the -j option, which enables journaling. The second command uses the mkfs utility with the -t option, which specifies the filesystem type. Both commands are equivalent and can be used interchangeably. The other options are incorrect because they use the wrong syntax or parameters for the commands. Option C is wrong because the -c option for the mkfs command checks the device for bad blocks, not the filesystem type. Option D is wrong because there is no such utility as mke3fs. The correct utility name is mke2fs.
質問 # 182
Which of the following command sets the Bash variable named TEST with the content FOO?
- A. set TEST="FOO"
- B. var TEST="FOO"
- C. TEST="FOO"
- D. TEST = "FOO"
正解:C
質問 # 183
During a system boot cycle, what is the program that is run after the BIOS completes its tasks?
- A. The inetd program
- B. The bootloader
- C. The kernel
- D. The init program
正解:B
解説:
Explanation
The program that is run after the BIOS completes its tasks is the bootloader12. The bootloader is a small program that loads the operating system into memory and executes it. The bootloader can be located in the Master Boot Record (MBR) of the first hard disk or the boot sector of a partition for BIOS systems, or in an
.efi file on the EFI System Partition for UEFI systems12. The bootloader can also display a menu to allow the user to choose from different operating systems or kernel versions to boot12.
The other options in the question are not correct because:
* B. The inetd program: This is a program that listens for incoming network connections and launches the appropriate service for them. It is not involved in the boot process3.
* C. The init program: This is a program that is executed by the kernel as the first user-space process. It is responsible for starting and managing other processes and services. It is not run by the BIOS.
* D. The kernel: This is the core of the operating system that controls everything in the system. It is
* loaded and executed by the bootloader, not by the BIOS.
References:
1: The Linux Booting Process - 6 Steps Described in Detail - freeCodeCamp.org 2: Guide to the Boot Process of a Linux System - Baeldung 3: [inetd - Wikipedia] : [init - Wikipedia] : [Linux kernel - Wikipedia]
質問 # 184
Which SysV init configuration file is commonly used to set the default run level? (Specify the full name of the file, including path.)
正解:
解説:
/etc/inittab
Explanation:
The /etc/inittab file is a plain text file that contains information about the initialization process of the system.
It defines the default run level, the available run levels, and the actions to be taken when entering or leaving a run level. The default run level is the mode of operation that the system starts up into, and it determines which services and processes are running. The default run level is specified by a line similar to the following in the
/etc/inittab file:
id:5:initdefault:
The number after the first colon indicates the default run level, which can range from 0 to 6. The meaning of each run level is:
* 0 - Halt
* 1 - Single-user text mode
* 2 - Not used (user-definable)
* 3 - Full multi-user text mode
* 4 - Not used (user-definable)
* 5 - Full multi-user graphical mode (with an X-based login screen)
* 6 - Reboot
To change the default run level, edit the /etc/inittab file as root and change the number to the desired run level. For example, to change the default run level to 3, use the following command:
sudo nano /etc/inittab
And change the line to:
id:3:initdefault:
Then save and exit the file. The changes will take effect on the next reboot.
References:
SysV Init Runlevels - Red Hat Customer Portal
F).4. SysV Init Runlevels - Red Hat Customer Portal
init - How can I see or change default run level? - Ask Ubuntu
質問 # 185
Which of the following commands lists all currently installed packages when using RPM package management?
- A. rpm --list --installed
- B. rpm --query --list
- C. yum --list --installed
- D. yum --query --all
- E. rpm --query --all
正解:E
質問 # 186
The message "Hard Disk Error" is displayed on the screen during Stage 1 of the GRUB boot process.
What does this indicate?
- A. One or more of the filesystems on the hard disk has errors and a filesystem check should be run
- B. The kernel was unable to execute /bin/init
- C. The next Stage cannot be read from the hard disk because GRUB was unable to determine the size and geometry of the disk
- D. The BIOS was unable to read the necessary data from the Master Boot Record to begin the boot process
正解:C
質問 # 187
Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?
- A. sed s/bob/Bob/ letter < newletter
- B. sed 's/bob/Bob/g' letter > newletter
- C. sed 's/bob, Bob/' letter > newletter
- D. sed '/bob/Bob' letter > newletter
- E. sed's/bob/Bob' letter > newletter
正解:B
解説:
Explanation
The command that replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter is sed 's/bob/Bob/g' letter > newletter. This command uses the following options and syntax:
* s: Specifies the substitution operation.
* /: Separates the pattern and the replacement strings.
* bob: The pattern to be searched and replaced.
* Bob: The replacement string.
* g: The global flag that indicates all occurrences of the pattern in each line should be replaced, not just the first one.
* letter: The name of the input file.
* : Redirects the output to a file.
* newletter: The name of the output file.
The output of this command will be a new file called newletter that contains the same text as letter, except that every 'bob' is replaced by 'Bob'. For example, if the file letter contains the following text:
Dear bob, I hope this letter finds you well. I am writing to inform you that your subscription to our magazine has expired. If you wish to renew it, please send us a check for $50 by the end of this month. Otherwise, we will have to cancel your subscription and remove you from our mailing list. Thank you for your cooperation and support. Sincerely, Alice The file newletter will contain the following text:
Dear Bob, I hope this letter finds you well. I am writing to inform you that your subscription to our magazine has expired. If you wish to renew it, please send us a check for $50 by the end of this month. Otherwise, we will have to cancel your subscription and remove you from our mailing list. Thank you for your cooperation and support. Sincerely, Alice The other commands are incorrect for the following reasons:
* A. sed '/bob/Bob' letter > newletter: This command is missing the s option and the second / delimiter, and will produce an error message.
* B. sed s/bob/Bob/ letter < newletter: This command is using the wrong redirection operator (< instead of
>), and will try to read the input from newletter instead of letter, and write the output to the standard output instead of newletter.
* C. sed's/bob/Bob' letter > newletter: This command is missing a space between sed and the first ', and will produce an error message.
* E. sed 's/bob, Bob/' letter > newletter: This command is using a comma (,) instead of a slash (/) as a delimiter, and will produce an error message.
References:
* [LPI Exam 101 Detailed Objectives], Topic 103: GNU and Unix Commands, Objective 103.7: Perform basic file management, Weight: 4, Key Knowledge Areas: Use of sed to edit files in place.
* How to Use the sed Command on Linux, Topic: Substituting Text.
質問 # 188
What is the default action of the split command on an input file?
- A. It will break the file into new files that are no morethan 5% of the size of the original file.
- B. It will break the file into new files of 1,000 line pieces each.
- C. It will break the file into new files of 1,024 kilobyte pieces each.
- D. It will break the file into new files of 1,024 byte pieces each.
正解:B
質問 # 189
You want the default permissions for your files to be -rw-r----- . HOW must you set umask?
- A. 038
- B. 027
- C. 037
- D. 0
正解:B
質問 # 190
When planning a partition scheme, which of the following directories could be considered for separate partitions? (Choose three.)
- A. /opt
- B. /etc
- C. /lib
- D. /var
- E. /home
正解:E
質問 # 191
Which of the following commands will print the last 10 lines of a text file to the standard output?
- A. tail -n 10 filename
- B. dump -n 10 filename
- C. cat -n 10 filename
- D. head -n 10 filename
正解:A
解説:
The tail command prints the last part of a file to the standard output. The -n option specifies the number of lines to print. Therefore, tail -n 10 filename will print the last 10 lines of the file named filename. The other commands are either invalid or do not perform the desired task. The cat command concatenates files and prints them to the standard output, but it does not have a -n option. The dump command is used to backup filesystems, not to print files. The head command prints the first part of a file, not the last part. References:
* LPIC-1 Exam 101 Objectives, Topic 103: GNU and Unix Commands, 103.3 Perform basic file management
* LPIC-1 Linux Administrator 101-500 Exam FAQ, LPIC-1 Exam 101 Objectives, GNU and Unix Commands (Total Weight: 25)
質問 # 192
What is the purpose of the Filesystem Hierarchy Standard?
- A. It is a distribution neutral description of locations of files and directories.
- B. It defines a common internal structure of inodes for all compliant filesystems.
- C. It is a security model used to ensure files are organized according to their permissions and accessibility.
- D. It provides unified tools to create, maintain and manage multiple filesystems in a common way.
正解:A
質問 # 193
Which chown command will change the ownership to dave and the group to staff on a file named data.txt?
- A. chown --user dave --group staff data.txt
- B. chown dave:staff data.txt
- C. chown -u dave -g staff data.txt
- D. chown dave/staff data.txt
正解:B
解説:
Explanation
The chown command is used to change the owner and group of files and directories in Linux. The basic syntax of the chown command is:
chown [options] user[:group] file...
The user is the name or the numeric ID of the new owner of the file. The group is the name or the numeric ID of the new group of the file. The file is the name or the path of the file or directory to be changed. The user and group are separated by a colon (:), not a slash (/). The group is optional, and if it is omitted, the group will not be changed. The options are optional, and they can modify the behavior of the chown command, such as changing the ownership recursively, silently, or verbosely.
In this question, the user is dave and the group is staff. The file is data.txt. Therefore, the correct command to change the ownership to dave and the group to staff on data.txt is:
chown dave:staff data.txt
This command will change the owner of data.txt to dave and the group of data.txt to staff. You can verify the changes by using the ls -l command to view the owner and group of data.txt.
The other options are not correct because:
* A. chown dave/staff data.txt: This command is not valid because it uses a slash (/) instead of a colon (:) to separate the user and group. The slash (/) is used to separate the directories in a path, not the user and group in the chown command. If you run this command, you will get an error message saying:
chown: invalid user: 'dave/staff'
* B. chown -u dave -g staff data.txt: This command is not valid because it uses the -u and -g options, which do not exist in the chown command. The -u and -g options are used in the chgrp command, which is used to change only the group of files and directories, not the owner. The chown command does not have the -u and -g options, and it uses the user[:group] argument to specify the new owner and group. If you run this command, you will get an error message saying:
chown: invalid option - 'u' Try 'chown --help' for more information.
* C. chown --user dave --group staff data.txt: This command is not valid because it uses the --user and
--group options, which do not exist in the chown command. The --user and --group options are used in the usermod command, which is used to modify the user account information, not the file ownership.
The chown command does not have the --user and --group options, and it uses the user[:group] argument to specify the new owner and group. If you run this command, you will get an error message saying:
chown: unrecognized option '-user' Try 'chown --help' for more information.
References:
* Chown Command in Linux: How to Change File Ownership - phoenixNAP
* chown command in Linux with Examples - GeeksforGeeks
* How to Use the chown Command on Linux - How-To Geek
質問 # 194
When using rpm --verify to check files created during the installation of RPM packages, which of the following information is taken into consideration? (Choose THREE correct answers.)
- A. File sizes
- B. Timestamps
- C. GnuPG signatures
- D. MD5 checksums
- E. Inodes
正解:A、B、D
解説:
When using rpm --verify to check files created during the installation of RPM packages, the following information is taken into consideration:
* Timestamps. RPM compares the modification time of the installed files with the original time stored in the RPM database. If the file has been modified after installation, the timestamp will differ and RPM will report it with an M flag1.
* MD5 checksums. RPM calculates the MD5 checksum of the installed files and compares it with the original checksum stored in the RPM database. If the file has been altered in any way, the checksum will differ and RPM will report it with an 5 flag1.
* File sizes. RPM compares the size of the installed files with the original size stored in the RPM database. If the file has been truncated or appended, the size will differ and RPM will report it with an S flag1.
RPM does not take into consideration the following information:
* Inodes. RPM does not check the inode number of the installed files, as it is not a reliable indicator of file identity. The inode number can change if the file is moved, copied, or restored from a backup2.
* GnuPG signatures. RPM does not verify the GnuPG signatures of the installed files, as they are not part of the RPM package format. The GnuPG signatures are used to verify the authenticity and integrity of the RPM package files before installation, not after3.
:
Using RPM to Verify Installed Packages
inode(7) - Linux manual page
RPM and GPG: How to verify Linux packages before installing them
質問 # 195
Keyboards and mice are members of which class of USB devices?
- A. Data Interface Device Class
- B. Communication Device Class
- C. Mass Storage Device Class
- D. Human Interface Device Class
正解:D
質問 # 196
Which file in the /proc filesystem lists parameters passed from the bootloader to the kernel? (Specify the file name only without any path.)
正解:
解説:
cmdline, /proc/cmdline
質問 # 197
Which of the following commands lists the dependencies of the RPM package file foo.rpm?
rpm -qpR foo.rpm
- A. rpm -ld foo.rpm
- B.
- C. rpm -pD foo
- D. rpm -R foo.rpm
- E. rpm -dep foo
正解:E
質問 # 198
......
101-500ブレーン問題集PDF、Lpi 101-500試験問題詰合せ:https://jp.fast2test.com/101-500-premium-file.html
2026年最新の101-500サンプル問題は信頼され続ける101-500テストエンジン:https://drive.google.com/open?id=1sXrGiQIwSCTxedF7poWMj4NfMRPXx9LA