
Lpi 102-500問題集で必ず試験合格させる
102-500試験問題(更新されたのは2025年)100%リアル問題解答
Lpi 102-500(LPIC-1 Exam 102、Part 2 of 2、version 5.0)認定試験は、Linuxシステム管理のスキルを検証するために設計された、グローバルに認知される認定試験です。この試験はLPIC-1認定の第2部であり、ネットワーク構成、システムメンテナンス、およびセキュリティ管理など、より高度なLinux管理タスクに焦点を当てています。この試験に合格することは、候補者がLinux管理に深い理解を持ち、Linuxシステム管理タスクを適切に実行できることを証明します。
質問 # 25
Which of the following commands is used to rotate, compress, and mail system logs?
- A. logger
- B. striplog
- C. logrotate
- D. syslogd --rotate
- E. rotatelog
正解:C
解説:
The logrotate command is a tool for rotating, compressing, and mailing system logs. It is designed to ease the administration of systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and mailing of log files. Each log file may be handled daily, weekly, monthly, or when it grows too large. Normally, logrotate is run as a daily cron job1. The logrotate command reads the configuration files specified on the command line or in the /etc/logrotate.conf and /etc/logrotate.d directories. These configuration files can set global options and specify log files to rotate and how to handle them. For example, the compress option enables compression of old log files, the mail option sends the log files to a specified email address before being rotated, and the rotate option sets the number of log files to keep12. The logrotate command is part of the LPI's multi-level Linux professional certification program, and it is covered in the topic 106.1 System logging of the exam 102 objectives3. Reference: 1: logrotate(8) - Linux man page 2: logrotate command in Linux with examples - Linux command line tutorial 3: Exam 102 Objectives
質問 # 26
FILL BLANK
What is the top-level directory which contains the configuration files for CUPS? (Specify the full path to the directory.)
正解:
解説:
/etc/cups/ cups-files.conf
質問 # 27
Which of the following commands preloads and manages keys that are used for automatic authentication while logging in to other machines using SSH?
- A. sshd
- B. ssh-add
- C. ssh-agent
- D. ssh-keygen
正解:C
解説:
The ssh-agent command is a program that runs in the background and acts as a key manager for SSH. It can store multiple private keys in memory and provide them to SSH clients when needed. This way, the user does not have to enter the passphrase for each key every time they log in to another machine using SSH. The ssh-agent can also forward the authentication request to another agent running on the original machine, allowing the user to hop between different machines without re-entering the passphrase1.
To use ssh-agent, the user needs to start it and add the private keys to it using the ssh-add command. The ssh-add command can also list, delete, and lock the keys stored in the agent. The user can then use the SSH_AUTH_SOCK environment variable to connect to the agent and use the keys for authentication2.
The other commands are not related to the ssh-agent. The sshd command is the SSH server daemon that listens for incoming connections and handles the authentication and encryption. The ssh-keygen command is a tool for generating, managing, and converting SSH keys. The ssh command is the SSH client that initiates the connection to the remote machine3. Reference: 1: SSH Essentials: Working with SSH Servers, Clients, and Keys. 2: [ssh-agent(1) - Linux manual page]. 3: SSH command usage, options, and configuration in Linux/Unix.
質問 # 28
Which crontab entry could be used to set the system time at regular intervals?
- A. 1 0 * * * date ntp1.digex.net
- B. 1 0 * * * settime $d $t $24
- C. 1 0 * * * ntpdate ntp1.digex.net
- D. 1 0 * * * runcron date ntp1.digex.net
- E. 1 0 * * * date $d $t $24
正解:C
解説:
The crontab entry that could be used to set the system time at regular intervals is the one that uses the ntpdate command to synchronize the system clock with a Network Time Protocol (NTP) server. The ntpdate command takes one or more NTP server names or IP addresses as arguments and adjusts the system clock accordingly12. The crontab entry B specifies that the ntpdate command should be executed at the first minute of the zeroth hour (i.e., 00:01) of every day of every month of every weekday, using the NTP server ntp1.digex.net34. This will ensure that the system time is updated daily with a reliable source.
The other crontab entries are either invalid or ineffective for setting the system time at regular intervals. The date command can be used to display or set the system date and time, but it requires a specific format for the argument, not an NTP server name5. The runcron and settime commands are not standard Linux commands and their functionality is unknown. The $d, $t, and $24 variables are also undefined and meaningless in this context.
References: 1: Linux At, Batch, Atq, Atrm Command Help and Examples - Computer Hope 2: How to set a cron job to run at a exact time? - Stack Overflow 3: 107.2 Lesson 1 - Linux Professional Institute Certification Programs 4: How to setup a crontab to execute at specific time - Stack Overflow 5: Writing a specific format of time in a text file every minute using ... - Ask Ubuntu
質問 # 29
Which of the following are syslog facilities? (Choose two.)
- A. postmaster
- B. local5
- C. remote
- D. accounting
- E. mail
正解:B、E
質問 # 30
On a system using systemd-journald, which of the following commands add the message Howdy to the system log? (Choose two.)
- A. logger Howdy
- B. echo Howdy > /dev/journal
- C. append Howdy
- D. journalctl add Howdy
- E. systemd-cat echo Howdy
正解:D
解説:
Explanation/Reference:
質問 # 31
Which of the following commands puts the output of the command date into the shell variable mydate?
- A. mydate="${date}"
- B. mydate="date"
- C. mydate="$(date)"
- D. mydate="exec date"
- E. mydate="$((date))"
正解:C
解説:
(date)"ComprehensiveExplanation:Thecorrectwaytoputtheoutputofthecommanddateintotheshellvariablemydateis This will execute the command in a subshell and replace the expression with its standard output. The double quotes around the expression will prevent word splitting and globbing of the output. The other options are incorrect because they will either assign a literal string to the variable, use an invalid syntax, or try to execute the command as an arithmetic expression.References:
* [LPI Linux Essentials - Topic 105: Shells, Scripting and Data Management]
* [LPI Linux Administrator - Exam 102 Objectives - Topic 105: Shells and Shell Scripting]
質問 # 32
Which of the following may occur as a consequence of using the command ifconfig? (Choose THREE correct answers.)
- A. Network interfaces may become active or inactive.
- B. The routing table may change.
- C. New name servers may be added to the resolver configuration.
- D. The system's host name may change.
- E. IP addresses may change.
正解:A、B、E
質問 # 33
Which of Ihe following slates can NetworkManager show regarding the system's network connectivity? (Choose TWO correct answers.)
- A. Up
- B. firewalled
- C. Login-required
- D. Portal
- E. full
正解:D、E
質問 # 34
Your senior systems administrator asks you to set up a new machine with Apache listening on port 8088.
Which Apache config file would you edit to change the default port to 8088?
- A. access.conf
- B. srm.conf
- C. httpd.conf
- D. inet.conf
正解:C
質問 # 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/host.conf
- D. /etc/xinetd.conf
- E. /etc/ports
正解:D
解説:
The file that can be used to enable and disable network services running on this host is /etc/xinetd.conf. This file is the main configuration file for the xinetd daemon, which is a super-server that can start other network services on demand. The /etc/xinetd.conf file contains global settings and a list of services that xinetd can manage. Each service has its own configuration section, which can include the disable keyword to enable or disable the service. For example, to disable the telnet service, the configuration section would look like this12:
service telnet
{
disable = yes
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/in.telnetd
log_on_failure += USERID
}
The other files are not related to network services. The /etc/profile file is a global configuration file for the Bash shell, which sets environment variables and aliases for all users3. The /etc/ports file does not exist by default in Linux, and it is not a standard file for network configuration. The /et/host.conf file is a typo, and it should be /etc/host.conf, which is a file that controls the behavior of the resolver library, which is used to look up host names and IP addresses4. The /etc/host.conf file is not used to enable or disable network services, but to specify the order of host name resolution methods5. References:
* 1: How to enable or disable services with xinetd - LinuxConfig.org
* 2: xinetd.conf(5) - Linux manual page - man7.org
* 3: What is /etc/profile file in Linux? - LinuxForDevices
* 4: host.conf(5) - Linux manual page - man7.org
* 5: Linux host.conf file - Computer Notes
質問 # 36
On a dual boot system, every time the system is booted back into Linux the time has been set backward by one day. Which of the following commands will correct the problem?
- A. time hwclock
- B. ntpdate pool.ntp.org
- C. date -d '+ 1 day'
- D. hwclock --systohc --localtime
正解:D
解説:
The command that will correct the problem of the time being set backward by one day on a dual boot system is hwclock --systohc --localtime. This command will set the hardware clock (RTC) to the current system time and use the local time standard instead of UTC12. This will prevent the time inconsistency issue that occurs when dual booting Linux and Windows, as Windows assumes that the hardware clock is using local time while Linux assumes that it is using UTC34. By using the same time standard for both operating systems, the time will be displayed correctly on both Linux and Windows.
The other commands are either invalid or ineffective for solving the problem. The date -d '+ 1 day' command will display the date and time one day ahead of the current system time, but it will not change the system time or the hardware clock5. The ntpdate pool.ntp.org command will synchronize the system time with an NTP server, but it will not affect the hardware clock or thetime standard6. The time hwclock command will measure the time taken by the hwclock command, which will display the hardware clock time, but it will not change anything7.
References: 1: hwclock(8) - Linux man page 2: How to Fix Windows and Linux Showing Different Times When Dual Booting 3: Dual-Booting Linux Messed Up Windows Time? Here's How to Fix It 4: Wrong Time in Windows 10 After Dual Boot With Linux 5: date(1) - Linux man page 6: ntpdate(8) - Linux man page 7: time(1) - Linux man page
質問 # 37
What is the systemd journal stored?
- A. /etc/systemd/journal/ or /usr/lib/systemd/journal/
- B. /var/jlog/ and /var/jlogd/
- C. /run/log/journal/ or /var/log/journal/
- D. /var/log/syslog.bin or /var/log/syslog.jrn
- E. /proc/log/ and /proc/klog/
正解:C
質問 # 38
What is the main difference between the batch and at commands?
- A. The at command reads commands from standard input. The batch command requires a command line argument.
- B. The batch command will run multiple times.The at command will only run once.
- C. The at command e-mails results to the user. The batch command logs results to syslog.
- D. The batch command will run when system load is low. The at command runs at a specific time.
正解:D
解説:
The batch command is similar to the at command, except that it executes commands when the system load levels permit; in other words, when the load average drops below 1.5, or the value specified in the invocation of atd1. The at command allows us to schedule jobs using any of two commands: at and batch. While at runs commands at our specified time, batch runs commands when our system's load average is below 0.82. Both commands read commands from standard input or a specified file, and both commands send the output of the commands to the user by mail1. Therefore, the main difference between them is the time of execution: at runs at a fixed time, while batch runs when the system is idle. References: 1: Linux At, Batch, Atq, Atrm Command Help and Examples - Computer Hope 2: The "at" Command in Linux | Baeldung on Linux
質問 # 39
In the output of iptables -L -n is the line ACCEPT all - - 10.69.70.5 0.0.0.0/0 listed under the INPUT chain.
What does this line mean?
- A. That all traffic from 0.0.0.0/0 to 10.69.70.5 is explicitly allowed
- B. All traffic from 10.69.70.5 to anywhere is allowed
- C. The ACCEPT chain is responsible for all traffic from 10.69.70.1 to 0.0.0.0
- D. TCP traffic to 10.69.70.5 with all of the TCP flags is allowed
正解:B
質問 # 40
Which of the following lines would you find in the file /etc/nsswitch.conf?
- A. 192.168.168.4 dns-server
- B. hosts: files dns
- C. domain mycompany.com
- D. smtp 25/tcp
正解:B
質問 # 41
What is true about NetworkManager on a Linux system that uses its distribution's mechanisms to configure network interfaces? (Choose two.)
- A. NetworkManager disables all interfaces which were not configured by NetworkManager.
- B. NetworkManager can be configured to use the distribution's network interface configuration.
- C. NetworkManager reconfigures all network interfaces to use DHCP unless they are specifically managed by NetworkManager.
- D. NetworkManager must be explicitly enabled for each interface it should manage.
- E. NetworkManager by default does not change interfaces which are already configured.
正解:D、E
質問 # 42
......
合格させるLpi 102-500試験最速合格にはJPNTest:https://www.jpntest.com/shiken/102-500-mondaishu
準備102-500問題解答で102-500試験問題集:https://drive.google.com/open?id=1Xg_fzxBGm0BjQCwWOmrLjreVum7W4m-0