[2025年02月08日] 完全版最新の問題集でPDFで最新102-500試験問題と解答
無料で使える102-500試験問題集で100%合格できる試験簡単に合格させるPassTest
LPI 102-500認定試験は、Linux管理を基本的に理解し、スキルを向上させたいLinuxシステム管理者向けに設計されています。この認定は、個人が専門的な設定でLinuxシステムを管理および構成するために必要な知識とスキルを持っていることを証明しています。これは、個人がLinux管理の専門知識を実証し、業界で認識を得るための優れた方法です。 LPIC-1認定は、IBM、HP、Novellを含む多くの組織によって認識されており、Linux Administrationでのキャリアを前進させようとする人にとって価値のある認定となっています。
LPIC-1資格認定は、Linux管理の専門知識を証明したいプロフェッショナルにとって必要不可欠です。グローバルに認知され、雇用主から高く評価されています。この認定は、候補者がプロの設定でLinuxシステムを管理するために必要なスキルと知識を持っていることを確認します。また、LPIC-2やLPIC-3などのより高度なLinux認定へのパスウェイを提供します。Lpi 102-500試験に合格することは、Linuxプロフェッショナルとしてのステップアップと、IT業界でのキャリアアップにとって重要な一歩です。
質問 # 16
Which of the following is observed and corrected by a NTP client?
- A. The skew in time between the system clock and the reference clock.
- B. Changes in the time zone of the current computer's location.
- C. The skew in time between the system clock and the hardware clock.
- D. Adjustments needed to support Daylight Saving Time.
正解:A
解説:
The Network Time Protocol (NTP) is a protocol that enables the accurate synchronization of time and date information across networked computer systems. NTP uses a hierarchical system of time servers, where each server has a stratum level that indicates its distance from the primary reference source. The primary reference source is usually an atomic clock or a GPS receiver, which provides the Coordinated Universal Time (UTC). The NTP clients are the computer systems that want to synchronize their system clocks with the UTC. The system clock is a software clock that runs in the kernel and keeps track of the current time and date. The system clock can be influenced by various factors, such as the hardware clock, the CPU frequency, the temperature, the load, and the network latency. These factors can cause the system clock to drift or skew from the UTC, resulting in inaccurate timekeeping. A NTP client observes and corrects the skew in time between the system clock and the reference clock, which is the clock of the NTP server that the client is connected to. The NTP client periodically sends requests to the NTP server and receives the server's time stamps. The NTP client then calculates the offset and the round-trip delay between its system clock and the reference clock, and adjusts its system clock accordingly. The NTP client can also use multiple NTP servers and apply algorithms to select the best one and filter out outliers. The NTP client can also discipline the system clock by using a feedback loop that controls the clock frequency and reduces the clock drift. By using NTP, the system clock can achieve a high accuracy and precision, usually within a few milliseconds or microseconds of the UTC123.
The other options are not correct. The skew in time between the system clock and the hardware clock is not observed and corrected by a NTP client, but by a separate utility called hwclock, which can read and set the hardware clock. The hardware clock is a battery-powered device that keeps time even when the system is powered off. The hardware clock is usually less accurate than the system clock, and can be synchronized with the system clock at boot or shutdown time. The changes in the time zone of the current computer's location are not observed and corrected by a NTP client, but by a configuration tool called timedatectl, which can set the system time zone and other parameters. The time zone is a geographical region that has a uniform standard time and date. The time zone does not affect the system clock, which always keeps the UTC, but only the display of the local time and date for the user. The adjustments needed to support Daylight Saving Time (DST) are not observed and corrected by a NTP client, but by the system's time zone database, which contains the rules and transitions for DST. DST is a practice of advancing the clocks by one hour during summer months to make better use of daylight. DST is not observed in all regions and countries, and can vary in start and end dates. The system's time zone database is updated regularly to reflect the changes in DST rules, and can be applied to the system clock to calculate the correct local time and date. Reference: 1: Network Time Protocol - Wikipedia 2: How NTP Works - NTP Pool Project 3: How To Set Up Time Synchronization on Ubuntu 20.042 : hwclock(8) - Linux manual page : timedatectl(1) - Linux manual page : Daylight saving time - Wikipedia
質問 # 17
What command is used to hold keys during a login session to be used for automatic authentication while logging in to other machines using ssh?
- A. ssh-add
- B. ssh-agent
- C. ssh-keygen
- D. sshd
正解:B
質問 # 18
Given the following routing table:
How would an outgoing packet to the destination 192.168.2.150 be handled?
- A. It would be passed to the default router 255.255.255.0 on eth0.
- B. It would be directly transmitted on the device wlan0.
- C. It would be passed to the default router 192.168.178.1 on wlan0.
- D. It would be directly transmitted on the device eth0.
- E. It would be passed to the router 192.168.1.1 on eth0.
正解:E
解説:
The routing table shows how the kernel will route packets to different destinations based on the destination IP address, the gateway, the netmask, the flags, the metric, and the interface. The kernel will try to find the most specific route that matches the destination IP address, which means the route with the longest netmask. If there are multiple routes with the same netmask, the kernel will use the route with the lowest metric. If there is no matching route, the kernel will use the default route, which is the route with the destination 0.0.0.0.
In this case, the destination IP address is 192.168.2.150, which belongs to the network 192.168.2.0/24. The routing table has a specific route for this network, which is the second entry. The gateway for this route is
0.0.0.0, which means that the packet will be directly transmitted on the interface eth0, without passing through any router. The netmask for this route is 255.255.255.0, which means that the network has 256 possible hosts.
The flags for this route are U, which means that the route is up, and G, which means that the route is to a gateway. The metric for this route is 0, which means that it has the highest priority. Therefore, the kernel will use this route to handle the outgoing packet to the destination 192.168.2.150.
References:
* How To Display Routing Table In Linux - RootUsers
* route command in Linux with Examples - GeeksforGeeks
* Understand the basics of Linux routing | TechRepublic
質問 # 19
What benefit does an alias in bash provide?
- A. It allows a string to be substituted for the first word of a simple command.
- B. It provides faster lookups for commands in the system directory.
- C. It hides what command you are running from others.
- D. It creates a local copy of a file from another directory.
正解:A
質問 # 20
Which of the following fields can be found in the /etc/group file? (Choose THREE correct answers.)
- A. The name of the group.
- B. The description of the group.
- C. The password of the group.
- D. The home directory of the group.
- E. The list of users that belong to the group.
正解:A、C、E
解説:
The /etc/group file is a text file that defines the groups and their members on the system. Each line in the file represents a single group, with the following format:
group_name:password:GID:user_list
The fields are:
* group_name: the name of the group
* password: the (encrypted) group password, or empty for no password
* GID: the numerical group ID
* user_list: a comma-separated list of users who belong to the group
Therefore, the fields that can be found in the /etc/group file are the name of the group, the password of the group, and the list of users that belong to the group. The home directory and the description of the group are not part of the /etc/group file format. References:
* group(5) - Linux manual page
* /etc/group file format | Linux#
質問 # 21
Which file specifies the user accounts that can NOT submit jobs via at or batch? (Provide the full path and filename)
正解:
解説:
etcatdeny
Explanation:
The /etc/at.deny file specifies the user accounts that can NOT submit jobs via at or batch. The format of the file is a list of usernames, one on each line. Whitespace is not permitted. The superuser may always use at. If the file /etc/at.allow exists, only usernames mentioned in it are allowed to use at. If /etc/at.allow does not exist, /etc/at.deny is checked12. The at and batch commands use the files /usr/lib/cron/at.allow and /usr/lib/cron/at.deny to restrict usage on some systems3. Reference:
at.allow(5) - Linux man page
at.deny(5) [linux man page] - The UNIX and Linux Forums
The at.allow and at.deny files - IBM
質問 # 22
What output is produced by the following command sequence?
echo '1 2 3 4 5 6' | while read a b c; do
echo result $c $b $a;
done
- A. result: 6 5 4 3 2 1
- B. result: 1 2 3 4 5 6
- C. result: 6 5 4
- D. result: 3 4 5 6 2 1
- E. result: 3 2 1
正解:D
質問 # 23
Which of the following are syslog facilities? (Choose TWO correct answers.)
- A. postmaster
- B. remote
- C. advanced
- D. local7
- E. mail
正解:D
解説:
The syslog facilities are predefined categories of messages that can be used to classify the source and type of the log events12. The syslog facilities are defined by the syslog protocol and are standardized across different implementations of syslog12. The syslog facilities are:
* auth: Security and authorization messages, such as login failures or sudo usage12.
* authpriv: Same as auth, but used for private security messages that should not be available to all users12.
* cron: Messages from the cron daemon, such as scheduled jobs or errors12.
* daemon: Messages from system daemons, such as sshd or ntpd12.
* kern: Messages from the kernel, such as boot messages or hardware errors12.
* lpr: Messages from the line printer subsystem, such as print jobs or errors12.
* mail: Messages from the mail subsystem, such as sendmail or postfix12.
* news: Messages from the network news subsystem, such as news servers or clients12.
* syslog: Messages generated internally by the syslog daemon, such as configuration errors or restarts12.
* user: Messages from user-level processes, such as applications or scripts12.
* uucp: Messages from the Unix-to-Unix copy subsystem, such as file transfers or errors12.
* local0 to local7: Custom facilities that are not used by any system processes and can be assigned to user applications or scripts123.
Therefore, the correct answers are A. local7 and B. mail, as they are both valid syslog facilities. The other options are not syslog facilities and are either made up (C. advanced and E. remote) or refer to a specific process rather than a category of messages (D. postmaster).
References: 1: Prepare for LPIC-1 exam 2 - topic 108.2: System logging - IBM Developer Tutorial 2: 108.2 System logging - Linux Professional Institute Certification Programs 3: What is the local6 (and all other local#) facilities in syslog?
質問 # 24
What is the name of the simple graphical login manager that comes with a vanilla X11 installation? (Specify ONLY the command without any path or parameters.)
正解:
解説:
xdm
Explanation:
The name of the simple graphical login manager that comes with a vanilla X11 installation is xdm. XDM is the traditional graphical login manager for the X Window System, independent of any window manager or environment the user might choose. When it is run at system startup, it displays a graphical login prompt rather than the text-based login prompt at the console1. XDM is part of the xorg-x11-apps package, which provides the basic applications for the X Window System2. XDM is also one of the topics covered by the LPI Linux Professional - Exam 102 Objectives - Topic 111: Graphical Desktops3. References:
* xorg-x11-apps - Linux Man Pages (1) - SysTutorials
* LPI Linux Professional - Exam 102 Objectives - Topic 111: Graphical Desktops
* GitHub - iwamatsu/slim: SLiM (Simple Login Manager) is a graphical login manager for X11
* slim-fork download | SourceForge.net
* Using the XDM Graphical Login Manager | FreeBSD 6 Unleashed - Flylib
* Xorg - ArchWiki
* How to remotely log in with full graphical desktop over X11 - Unix & Linux Stack Exchange
質問 # 25
What is true about the file /etc/localtime?
- A. It is created and maintained by the NTP service based on the location of the system's IP address.
- B. It is a plain text file containing a string such as Europe/Berlin
- C. It is a symlink to /sys/device/clock/ltime and always contains the current local time.
- D. After changing this file, newtzconfig has to be run to make the changes effective.
- E. It is either a symlink to or a copy of a timezone information file such as /usr/share/zoneinfo/Europe/Berlin.
正解:E
解説:
The /etc/localtime file is used to configure the system-wide timezone of the local system that is used by applications for presentation to the user. It should be either a symlink to or a copy of a timezone information file that contains the binary data for the configured timezone. The timezone information files are located under /usr/share/zoneinfo/ and are named after the geographic regions and cities, such as Europe/Berlin or Etc/UTC. The timezone identifier is extracted from the symlink target name of /etc/localtime, so it is recommended to use a symlink rather than a copy. The timezone can be changed by using the timedatectl command or by creating a new symlink to the desired timezone file123. Reference:
How to Set or Change the Time Zone in Linux | Linuxize
localtime(5) - Linux manual page - man7.org
localtime(5) - Arch manual pages
質問 # 26
Which of the following commands display the number of bytes transmitted and received via the eth0 network interface? (Choose two.)
- A. ip -s link show eth0
- B. netstat -s -i eth0
- C. ifconfig eth0
- D. ip stats show dev eth0
- E. route -v via eth0
正解:B、C
質問 # 27
Which environment variable should be set in order to change the time zone for the commands run from within the environment variable's scope? (Specify the variable name only.)
正解:
解説:
TZ
Explanation:
The TZ environment variable is used to change the time zone for the commands run from within the environment variable's scope. It specifies the name of a time zone as defined in the /usr/share/zoneinfo directory or a custom time zone in the POSIX format12. The TZ variable can be set either globally in a shell profile file or locally in a shell session. For example, to set the time zone to America/New_York for the current shell session, one can use the following command:
export TZ=America/New_York
To verify the change, one can use the date command to display the current date and time according to the TZ variable. The TZ variable can also be used to run a single command with a different time zone without affecting the system's time zone. For example, to run the date command with the Asia/Tokyo time zone, one can use the following syntax:
TZ=Asia/Tokyo date
The TZ variable is useful for testing how applications behave in different time zones or for displaying the time in different locations34. References:
* How to Set or Change the Time Zone in Linux | Linuxize
* Linux / UNIX: TZ Environment Variable - nixCraft
* Get Current System Time Zone in Linux | Baeldung on Linux
* Setting the TZ Environment Variable on Linux | InterSystems Developer
質問 # 28
What is true about the file .profile in a user's home directory?
- A. It must start with a shebang.
- B. It must be executable.
- C. It must call the binary of the login shell.
- D. It must be readable for its owner only.
- E. It must use a valid shell script syntax.
正解:E
質問 # 29
Which of the following changes may occur as a consequence of using the command ip? (Choose three.)
- A. IP addresses may change.
- B. The system's host name may change.
- C. New name servers may be added to the resolver configuration.
- D. Network interfaces may become active or inactive.
- E. The routing table may change.
正解:A、D、E
解説:
The ip command is a versatile tool that can be used to configure and manage various aspects of the network interfaces, such as IP addresses, routes, tunnels, and more. Depending on the options and arguments used, the ip command can cause different changes to the network configuration. Some of the possible changes are:
* Network interfaces may become active or inactive. The ip command can be used to bring up or down a network interface, which means to activate or deactivate its connection to the network. For example, the command ip link set eth0 up will bring up the interface eth0, while the command ip link set eth0 down will bring it down. This can affect the network connectivity and performance of the system.
* IP addresses may change. The ip command can be used to assign or remove IP addresses to a network interface, which are the numerical identifiers that allow the system to communicate with other hosts in the network. For example, the command ip addr add 192.168.1.100/24 dev eth0 will assign the IP address 192.168.1.100 with a subnet mask of 255.255.255.0 to the interface eth0, while the command ip addr del 192.168.1.100/24 dev eth0 will remove it. This can affect the network reachability and routing of the system.
* The routing table may change. The ip command can be used to add or delete routes to the routing table, which is a data structure that stores the information about how to reach different network destinations.
For example, the command ip route add 10.0.0.0/8 via 192.168.1.1 dev eth0 will add a route to the network 10.0.0.0/8 through the gateway 192.168.1.1 using the interface eth0, while the command ip route del 10.0.0.0/8 via 192.168.1.1 dev eth0 will delete it. This can affect the network traffic and efficiency of the system.
The ip command does not affect the following settings:
* New name servers may be added to the resolver configuration. The resolver configuration is a file that specifies the name servers that the system uses to resolve domain names to IP addresses. The resolver configuration file is usually /etc/resolv.conf, and it is not modified by theip command. To add or remove name servers, the file has to be edited manually or by another tool, such as resolvconf or NetworkManager.
* The system's host name may change. The host name is a human-readable name that identifies the system in the network. The host name is usually stored in the file /etc/hostname, and it is not changed by the ip command. To change the host name, the file has to be edited manually or by another tool, such as hostnamectl or nmtui.
References:
* LPIC-1 Exam 102 Objectives, Topic 109: Networking Fundamentals, Subtopic 109.2: Persistent network configuration, Weight: 2, Key Knowledge Areas: Query and modify the behavior of network interfaces. Objective: Use the ip command to configure and modify the behavior of network interfaces.
* LPIC-1 Exam 102 Learning Materials, Topic 109: Networking Fundamentals, Subtopic 109.2: Persistent network configuration, Section 109.2.2: ip, Page 17-19.
質問 # 30
The ________ command is used to add a group to the system.
正解:
解説:
/usr/sbin/groupadd
質問 # 31
Which of the following tools used for DNS debugging, reports not only the response from the name server but also details about the query?
- A. dig
- B. hostname
- C. zoneinfo
- D. dnslookup
- E. dnsq
正解:A
質問 # 32
Which of the following keywords can be used in the file /etc/nsswitch.conf to specify a source for host name lookups? (Choose TWO correct answers.)
- A. dns
- B. resolve
- C. hosts
- D. remote
- E. files
正解:A、E
解説:
The keywords dns and files can be used in the /etc/nsswitch.conf file to specify a source for host name lookups. The keyword dns means that the system will use the Domain Name System (DNS) to resolve host names to IP addresses. The keyword files means that the system will use the local /etc/hosts file to resolve host names to IP addresses. The order of the keywords on the line determines the order in which the sources will be queried. For example, the following line in /etc/nsswitch.conf:
hosts: files dns
means that the system will first check the /etc/hosts file for a matching host name, and if not found, it will query the DNS servers configured in /etc/resolv.conf. The other keywords in the question are not valid for the hosts database. The keyword resolv is used for the services database, which contains network service names and port numbers. The keyword remote is not a standard keyword, but it may be used by some applications to implement their own name service providers. The keyword hosts is the name of the database itself, not a source for it. Reference:
[LPI Linux Administrator - Exam 102 Objectives - Topic 109: Networking Fundamentals] nsswitch.conf(5) - Linux manual page What is the /etc/nsswitch.conf file in Linux - TecAdmin
質問 # 33
Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?
- A. export UI_MESSAGES="pt"
- B. export ALL_MESSAGES="pt"
- C. export MESSAGE="pt"
- D. export LANGUAGE="pt"
- E. export LC_MESSAGES="pt"
正解:E
解説:
The LC_MESSAGES environment variable specifies the language to use in diagnostic messages for an internationalized program. It can be set to any value supported by the installation, such as pt for Portuguese, en for English, fr for French, etc. The LC_MESSAGES variable can be set either globally in a shell profile file, such as /etc/bash_profile, or locally in a shell session. For example, to set the language of messages to Portuguese for the current shell session, one can use the following command:
export LC_MESSAGES=pt
To verify the change, one can run an internationalized program, such as man, and see the output in Portuguese. The LC_MESSAGES variable can also be used to run a single command with a different language without affecting the system's language. For example, to run the man command with the Spanish language, one can use the following syntax:
LC_MESSAGES=es man
The LC_MESSAGES variable is useful for testing how programs behave in different languages or for displaying messages in different languages1234. Reference:
Locale Environment Variables in Linux | Baeldung on Linux
Linux / UNIX: TZ Environment Variable - nixCraft
Changing your locale on Linux and UNIX systems - IBM
Selecting message language in gcc and g++ - Stack Overflow
質問 # 34
Which of the following files is not read directly by a Bash login shell?
- A. /etc/profile
- B. -/.bashrc
- C. -/.profile
- D. -/.bash_login
- E. -/.bash_profile
正解:B
質問 # 35
Depending on a system's configuration, which of the following files can be used to enable and disable network services running on this host?
- A. /et/host.conf
- B. /etc/profile
- C. /etc/ports
- D. /etc/xinetd.conf
- E. /etc/host.conf
正解:D
質問 # 36
Which bash option will prevent you from overwriting a file with a ">"?
- A. set -o safe
- B. set -o noclobber
- C. set -o nooverwrite
- D. set -o noglob
- E. set -o append
正解:B
質問 # 37
Which option in the /etc/ntp.conf file specifies an external NTP source to be queried for time information? (Specify ONLY the option without any values or parameters.)
正解:
解説:
server
Explanation:
The server option is used to configure a persistent association with a remote server or peer. It takes an argument that is either a host name or a numeric IP address of the NTP server. The ntpd daemon will periodically send NTP packets to the specified server and adjust the local clock according to the received responses. Multiple server options can be used to specify more than one NTP source. For example, the following lines in the /etc/ntp.conf file configure four external NTP sources:
server 0.asia.pool.ntp.org
server 0.oceania.pool.ntp.org
server 0.europe.pool.ntp.org
server 0.north-america.pool.ntp.org
Reference:
https://docs.ntpsec.org/latest/ntp_conf.html
https://vceguide.com/which-option-in-the-etc-ntp-conf-file-specifies-an-external-ntp-source-to-be-queried-for-time-information-2/
https://vceguide.com/which-option-in-the-etcntp-conf-file-specifies-an-external-ntp-source-to-be-queried-for-time-information/
質問 # 38
Which of the following programs can be used to determine the routing path to a given destination?
- A. dig
- B. traceroute
- C. ping
- D. route
- E. netstat
正解:B
解説:
The traceroute program can be used to determine the routing path to a given destination by sending packets with incrementing TTL values and recording the source of the ICMP time exceeded messages. This way, it can show the intermediate hops and the round-trip times for each packet. The other programs have different purposes: dig is used to query DNS servers, netstat is used to display network connections and statistics, ping is used to test the reachability of a host by sending ICMP echo requests and measuring the response time, and route is used to manipulate the routing table. Reference:
LPI 102-500 Exam Objectives, Topic 110: Network Fundamentals, Weight: 4, 110.3 Basic network troubleshooting LPI 102-500 Study Guide, Chapter 10: Network Fundamentals, Section 10.3: Basic Network Troubleshooting, Page 125-126
質問 # 39
Which command makes the shell variable named VARIABLE visible to subshells?
- A. set $VARIABLE
- B. set VARIABLE
- C. export VARIABLE
- D. env VARIABLE
- E. export $VARIABLE
正解:C
解説:
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. Reference:
[LPI Linux Essentials - Topic 105: Shells, Scripting and Data Management]
[LPI Linux Administrator - Exam 102 Objectives - Topic 105: Shells and Shell Scripting]
質問 # 40
Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?
- A. export UI_MESSAGES="pt"
- B. export ALL_MESSAGES="pt"
- C. export MESSAGE="pt"
- D. export LANGUAGE="pt"
- E. export LC_MESSAGES="pt"
正解:E
解説:
The LC_MESSAGES environment variable specifies the language to use in diagnostic messages for an internationalized program. It can be set to any value supported by the installation, such as pt for Portuguese, en for English, fr for French, etc. The LC_MESSAGES variable can be set either globally in a shell profile file, such as /etc/bash_profile, or locally in a shell session. For example, to set the language of messages to Portuguese for the current shell session, one can use the following command:
export LC_MESSAGES=pt
To verify the change, one can run an internationalized program, such as man, and see the output in Portuguese.
The LC_MESSAGES variable can also be used to run a single command with a different language without affecting the system's language. For example, to run the man command with the Spanish language, one can use the following syntax:
LC_MESSAGES=es man
The LC_MESSAGES variable is useful for testing how programs behave in different languages or for displaying messages in different languages1234. References:
* Locale Environment Variables in Linux | Baeldung on Linux
* Linux / UNIX: TZ Environment Variable - nixCraft
* Changing your locale on Linux and UNIX systems - IBM
* Selecting message language in gcc and g++ - Stack Overflow
質問 # 41
......
無料で試せる102-500試験問題102-500実際の無料試験問題:https://www.passtest.jp/Lpi/102-500-shiken.html
検証済みの102-500問題集と236格別な問題:https://drive.google.com/open?id=1cP_-FsAlkg6e4Hrkf4xBGUmHeFvSZfrp