[2025年更新]合格できる102-500試験にはリアルな問題解答
102-500試験問題ゲット最新[2025]と正解回答
Lpi 102-500試験は、Linux管理者になりたいIT専門家向けの包括的な認定テストです。この試験は、LPIC-1 Exam 102、Part 2 of 2、version 5.0としても知られています。この厳しい試験では、ファイルシステムとデバイス、ネットワーク、セキュリティなど、Linux管理に関する候補者の知識とスキルを試験します。
Lpi 102-500 認定試験は、コマンドラインインターフェースを使用する Linux 管理者の知識と技能を検証することを目的として設計されています。この試験は LPIC-1 認定の一部であり、LPIC-1 認定を取得するために必要な二つの試験のうちの二番目にあたります。この試験では、Linux のインストールとパッケージ管理、GNU および Unix コマンド、デバイス、Linux ファイルシステム、およびファイルシステム階層規格に関する候補者の知識がテストされます。
質問 # 46
Which of the following entries in /etc/syslog.conf writes all mail related events to the file /var/log/maillog and sends all critical events to the remote server logger.example.com?
- A. mail.*/var/log/maillogmail,[email protected]
- B. mail/var/log/[email protected]
- C. mail */var/log/maillogmail [email protected]
- D. mail.*/var/log/[email protected]
- E. mail.*/var/log/maillogmail.critsyslog://logger.example.org
正解:D
解説:
The /etc/syslog.conf file is used to configure the syslog daemon, which handles the logging of system messages. The file consists of lines that have the following format:
selector action
The selector specifies the type and priority of the messages to be logged, and the action specifies what to do with the messages. The selector has two parts, separated by a dot: the facility and the priority. The facility indicates the source of the message, such as mail, auth, kern, etc. The priority indicates the severity of the message, such as emerg, alert, crit, err, etc. A priority can also be preceded by an equal sign (=) to match only that priority, or a minus sign (-) to match all priorities except that one.
The action can be one of the following:
A filename, starting with a slash (/), indicating the file to write the messages to.
A hostname, preceded by an at sign (@), indicating the remote host to send the messages to via UDP.
A username, indicating the user to send the messages to via wall.
An asterisk (*), indicating all logged-in users.
A pipe symbol (|), followed by a command, indicating the program to pipe the messages to.
In this question, the correct entry is D. mail.*/var/log/[email protected]. This entry means:
Log all mail related messages (mail.*) to the file /var/log/maillog.
Log all critical mail messages (mail.crit) to the remote host logger.example.org.
The other options are incorrect because:
Option A is missing a dot between mail and crit, and uses the wrong domain name (example.org instead of example.com).
Option B uses an invalid action (syslog://logger.example.org) that is not supported by syslog.conf.
Option C is missing a dot between mail and *.
Option E is missing dots between mail and * and between mail and crit.
質問 # 47
Please specify the top directory containing the configuration files for the CUPS printing system. (Specify the full path to the directory.)
正解:
解説:
/etc/cups, /etc/cups/
Explanation:
The top directory containing the configuration files for the CUPS printing system is /etc/cups. This directory stores various files that control the behavior and functionality of the CUPS scheduler, cupsd (8), such as cups-files.conf (5), cupsd.conf (5), mime.convs (5), mime.types (5), printers.conf (5), and subscriptions.conf (5). The /etc/cups directory also contains subdirectories for classes, interfaces, ppd, and ssl, which store information about printer classes, device interfaces, printer drivers, and encryption certificates, respectively12. The /etc/cups directory is part of the LPI's multi-level Linux professional certification program, and it is covered in the topic 105.5 Print service of the exam 102 objectives3. References: 1: cups-files (5) - Linux Manuals 2: cupsd.conf - server configuration file for cups 3: Exam 102 Objectives
質問 # 48
Which command makes the shell variable named VARIABLE visible to subshells?
- A. export $VARIABLE
- B. set VARIABLE
- C. env VARIABLE
- D. set $VARIABLE
- E. export VARIABLE
正解:E
解説:
The export command makes the shell variable named VARIABLE visible to subshells. This means that any child process that is spawned from the current shell will inherit the value of VARIABLE. The export command does not need a dollar sign ($) before the variable name, as that would expand the variable to its value. The set command only affects the current shell and does not export the variable to subshells. The env command can be used to run a command in a modified environment, but it does not export the variable to subshells either. References:
* [LPI Linux Essentials - Topic 105: Shells, Scripting and Data Management]
* [LPI Linux Administrator - Exam 102 Objectives - Topic 105: Shells and Shell Scripting]
質問 # 49
What output will the command seq 10 produce?
- A. A continuous stream of numbers increasing in increments of 10 until stopped.
- B. The numbers 0 through 9 with one number per line.
- C. The numbers 1 through 10 with one number per line.
- D. The number 10 to standard output.
正解:C
質問 # 50
What is true about the file /etc/localtime?
- A. It is a plain text file containing a string such as Europe/Berlin
- B. After changing this file, newtzconfig has to be run to make the changes effective.
- C. It is either a symlink to or a copy of a timezone information file such as /usr/share/zoneinfo/ Europe/Berlin.
- D. It is created and maintained by the NTP service based on the location of the system's IP address.
- E. It is a symlink to /sys/device/clock/ltime and always contains the current local time.
正解:C
質問 # 51
Which of the following looks like a correct entry in the /etc/hosts file?
- A. localhost.localdomain localhost 127.0.0.1
- B. localhost.localdomain 127.0.0.1 localhost
- C. localhost 127.0.0.1 localhost.localdomain
- D. 127.0.0.1 localhost.localdomain localhost
- E. localhost localhost.localdomain 127.0.0.1
正解:D
質問 # 52
Which file contains the date of the last change of a user's password?
- A. /etc/gshadow
- B. /var/log/shadow
- C. /etc/passwd
- D. /etc/pwdlog
- E. /etc/shadow
正解:E
質問 # 53
Which of the following steps prevents a user from obtaining an interactive login session?
- A. Removing the user from the group staff.
- B. Creating a .nologin file in the user's home directory.
- C. Adding the user to /etc/noaccess.
- D. Setting the UID for the user to 0.
- E. Running the command chsh -s /bin/false with the user name.
正解:E
質問 # 54
After issuing:
function myfunction { echo $1 $2 ; }
in Bash, which output does:
myfunction A B C
Produce?
- A. A C
- B. A B C
- C. B C
- D. C B A
- E. A B
正解:E
解説:
In Bash, a function is a block of code that can be invoked by its name. A function can take arguments, which are passed to the function as positional parameters. The $1 variable refers to the first argument, $2 to the second argument, and so on. The function can access the number of arguments passed to it by using the $# variable. In this case, the function myfunction simply echoes the first and second arguments to the standard output. Therefore, when the command myfunction A B C is executed, the output is A B, since the third argument C is ignored by the function. Reference:
[LPI Linux Essentials - Topic 103: Command Line Basics]
[Bash Functions]
質問 # 55
Which directory in /etc is used to keep a sample copy of files and directories for when a new user has a home directory created? (Please provide the full path)
正解:
解説:
/etc/skel/
質問 # 56
Which configuration file does sudo read when determining if a user is permitted to run applications with root privileges?
- A. /etc/sudo.conf
- B. /etc/shadow
- C. /etc/audit.conf
- D. /etc/sudoers
正解:D
質問 # 57
What is true regarding the file ~/.forward?
- A. When configured correctly, ~/.forward can be used to forward each incoming mail to more than one other recipient.
- B. After editing ~/.forward the user must run newaliases to make the mail server aware of the changes.
- C. As it is owned by the MTA and not writable by the user, it must be edited using the editaliases command.
- D. Using ~/.forward, root may configure any email address whereas all other users may configure only their own addresses.
正解:A
質問 # 58
Which of the following statements is true if the UID of a regular user is identical to the GID of a group?
- A. The user as well as the group are not available to avoid ambiguity due to the ID conflict.
- B. GIDs have precedence over UIDs, therefore the group is available while the user isn't.
- C. The user is the only member of the group, even if the group configuration contains other members.
- D. UID have precedence over GIDs, therefore the user is available while the group doesn't.
- E. UIDs and GIDs are independent of each other, therefore the user as well as the group are still available.
正解:E
解説:
UIDs and GIDs are two different types of identifiers for users and groups in Linux. They are not related to each other, and they do not affect each other's availability or functionality. A user can have the same UID as another user's GID, or vice versa, without any problem. The only restriction is that UIDs and GIDs must be unique within their own domain, i.e., no two users can have the same UID, and no two groups can have the same GID. Having the same UID as a GID does not imply any special relationship between the user and the group, nor does it grant any extra permissions or access rights. The user and the group are still treated as separate entities by the system123 Reference: 1: Linux sysadmin basics: User account management with UIDs and GIDs 2: How to (Correctly) Change the UID and GID of a user/group in Linux 3: Linux File Permission: uid vs gid - CBT Nuggets
質問 # 59
Which directory in /etc is used to keep a sample copy of files and directories for when a new user has a home directory created? (Please provide the full path)
正解:
解説:
/etc/skel, /etc/skel/
質問 # 60
Which of the following commands can remove a user from a group?
- A. groupmod
- B. passwd
- C. grouprm
- D. usermod
- E. usergroups
正解:D
解説:
The usermod command is a utility for modifying user accounts. One of its options is -G, which allows specifying a list of supplementary groups that the user is a member of. If the user is currently a member of a group that is not listed, the user will be removed from that group. For example, to remove the user alice from the group sales, one can use the command sudo usermod -G admin alice, assuming that alice is only a member of admin and sales groups. Alternatively, one can use the gpasswd command with the --delete option to remove a user from a specific group without affecting other groups. For example, to remove the user alice from the group sales, one can use the command sudo gpasswd --delete alice sales. The other commands in the options are not used for removing a user from a group. The grouprm command does not exist. The groupmod command is used for modifying group attributes, not membership. The passwd command is used for changing user passwords, not groups. The usergroups command is used for displaying the groups that a user belongs to, not modifying them. References:
* usermod(8) - Linux man page
* gpasswd(1) - Linux man page
* How to Remove User From Group in Linux [Quick Tip]
質問 # 61
What keyword is missing from this code sample of a shell script?
____ i in *.txt; do
echo $i
done
- A. until
- B. loop
- C. while
- D. for
正解:B
解説:
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
質問 # 62
Which of the commands below might have produced the following output?
- A. dig -t mx www.example.org
- B. dig -t ns www.example.org
- C. dig -t a www.example.org
- D. dig www.example.org
- E. dig -t soa www.example.org
正解:D
質問 # 63
Which command can be used to delete a group from a Linux system?
- A. groups
- B. groupdel
- C. groupedit
- D. groupmod
正解:B
質問 # 64
Which command included in NetworkManager is a curses application which provides easy acces to the NetworkManager on the command line? (Specify only the command without any path or parameters.)
正解:
解説:
nmtui
Explanation:
The command nmtui is a curses application that provides easy access to the NetworkManager on the command line. It is included in the networkmanager package, along with nmcli, which is another command line interface for NetworkManager. nmtui allows the user to view, edit, activate and deactivate network connections, as well as set the system hostname. It has a simple and user-friendly interface that can be navigated with the keyboard or mouse12. References: 1: Wireless Network Manager command line ncurses GUI. 2: NetworkManager - ArchWiki.
質問 # 65
What is NOT contained in the locale setting of the operating system?
- A. language
- B. thousands separator
- C. currency symbol
- D. timezone
正解:D
解説:
The locale setting of the operating system is a set of environmental variables that defines the language, country, and character encoding settings (or any other special variant preferences) for the applications and shell session on a Linux system12. The locale setting usually consists of at least a language code and a country/region code, such as en_US for English (United States) or fr_FR for French (France). The locale setting also affects things such as the currency symbol, the thousands separator, the decimal point, the date and time format, the collation order, the paper size, the telephone number format, and many other values formatted in accordance with the language or region/country12. However, the timezone is not contained in the locale setting of the operating system. The timezone is a separate setting that determines the local time of the system based on the offset from the Coordinated Universal Time (UTC) and the daylight saving time (DST) rules. The timezone can be different from the country/region code in the locale setting, for example, a user can have a locale setting of en_US but a timezone of Asia/Kolkata. The timezone can be viewed and modified by using the date, timedatectl, or tzselect commands . References: 12
質問 # 66
On a system running the KDE Display Manager, when is the /etc/kde4/kdm/Xreset script automatically executed?
- A. When X crashes
- B. When a user's X session exits
- C. When KDM starts
- D. When KDM crashes
- E. When X is restarted
正解:B
解説:
The /etc/kde4/kdm/Xreset script is a script that runs as root after a user's X session exits. It can be used to perform some cleanup tasks or other actions that need to be done when the user logs out of the graphical environment. For example, it can reassign the ownership of the console to root, or shut down the system if desired. The /etc/kde4/kdm/Xreset script is part of the KDE Display Manager (kdm), which is a graphical login manager for X. KDM can be configured to run this script by setting the Reset key in the [X-*-Core] section of the /etc/kde4/kdm/kdmrc configuration file. Reference:
kdm.options - configuration options for X display manager
kdm(1) - kdm - Debian jessie - Debian Manpages
debian - How to get system to shutdown when Xorg is quit? - Unix ...
質問 # 67
Which of the following nmcli subcommands exist? (Choose two.)
- A. nmcli wifi
- B. nmcli device
- C. nmcli address
- D. nmcli connection
- E. nmcli ethernet
正解:B、D
解説:
The nmcli command is a command-line interface for NetworkManager, which is a tool for configuring and managing network settings on Linux systems. The nmcli command consists of different subcommands that correspond to different aspects of network configuration and management. The subcommands are:
nmcli general: shows status and permissions of NetworkManager, as well as system hostname and logging level and domains.
nmcli connection: enables you to create, modify, activate, deactivate, delete, and show network connections.
nmcli device: enables you to show, modify, and control network devices, such as interfaces, bonds, teams, bridges, etc.
nmcli monitor: monitors activity of NetworkManager and watches for changes in the state of connectivity and devices.
nmcli networking: enables or disables overall networking.
nmcli radio: enables or disables radio transmitters for Wi-Fi, Bluetooth, and WWAN devices.
nmcli agent: registers as a secret agent that provides and caches network credentials.
The other options listed are not valid nmcli subcommands. There is no nmcli ethernet, nmcli wifi, or nmcli address subcommand. However, nmcli device and nmcli connection can be used to configure and manage Ethernet and Wi-Fi connections and addresses. Reference:
NetworkManager configuration and usage | SLE Micro 5.3
nmcli: NetworkManager Reference Manual - GNOME
nmcli: command not found - The Geek Diary
質問 # 68
What is true regarding the command sendmail?
- A. All MTAs, including Postfix and Exim, provide a sendmail command.
- B. The sendmail command prints the MTAs queue history of which mails have been sent successfully.
- C. It is only available when the sendmail MTA is installed.
- D. With any MTA, the sendmail command must be run periodically by the cron daemon.
正解:A
解説:
The sendmail command is a generic interface to various mail transfer agents (MTAs), such as Sendmail, Postfix, Exim, Qmail, etc. The sendmail command is used to send emails from the command line or from other programs that need to deliver emails. The sendmail command accepts various flags and parameters to specify the sender, recipient, subject, body, and attachments of the email. The sendmail command also reads the standard input for the email content if no file is specified. The sendmail command is part of the sendmail package, which is the original and most widely used MTA for Unix-like systems. However, other MTAs, such as Postfix and Exim, also provide a sendmail command for compatibility reasons. The sendmail command provided by these MTAs may have slightly different syntax and options, but they all support the basic functionality of sending emails. Therefore, the statement that all MTAs, including Postfix and Exim, provide a sendmail command is true123.
The other statements are false. The sendmail command does not need to be run periodically by the cron daemon, as it is not a daemon itself, but a command-line tool. The sendmail command does not print the MTA's queue history, but rather sends the email to the MTA for delivery. The sendmail command is not only available when the sendmail MTA is installed, but also when other MTAs that provide a sendmail command are installed. Reference: 1: Linux Sendmail Command Help and Examples - Computer Hope 2: Send Email in Linux from Command Line | DigitalOcean 3: 5 Ways To Send Email from Linux Command Line - TecAdmin
質問 # 69
Which command, depending on its options, can display the open network connections, the routing tables, as well as network interface statistics. (Specify ONLY the command without any path or parameters.)
正解:
解説:
netstat
質問 # 70
Which command allows you to make a shell variable visible to subshells?
- A. export $VARIABLE
- B. set VARIABLE
- C. env VARIABLE
- D. set $VARIABLE
- E. export VARIABLE
正解:E
解説:
The command that allows you to make a shell variable visible to subshells is export VARIABLE. This command turns the variable into a global or environment variable, which means it can be accessed by any child process or subshell that inherits the environment of the parent shell. The syntax of the export command does not require a dollar sign ($) before the variable name, unlike when referencing the value of the variable. The other commands are either invalid or do not affect the visibility of the variable to subshells. The set command can be used to assign values to variables, but it does not export them. The env command can be used to run a command in a modified environment, but it does not change the environment of the current shell. Reference:
[LPI Linux Essentials - Topic 105: Shells, Scripting and Data Management]
[LPI Linux Professional - Exam 102 Objectives - Topic 105: Shells and Shell Scripting] What is a Subshell? - Linux Bash Shell Scripting Tutorial Wiki - nixCraft What is Subshell in Linux? [Explained]
質問 # 71
......
LPIC-1試験102に合格するには、候補者はこれらの各領域で習熟度を実証する必要があります。また、Linuxコマンドとユーティリティに関する知識を実証し、基本的なシステム管理タスクを実行できる必要があります。
練習できる102-500問題で認証試験問題集ガイド解答は練習専門PassTest:https://www.passtest.jp/Lpi/102-500-shiken.html
無料Lpi 102-500テスト練習テスト問題試験問題集:https://drive.google.com/open?id=15W49uq1TZhuiQ1_cnaKct4HSurQ3MaA-