102-500試験無料問題集「Lpi LPIC-1 Exam 102, Part 2 of 2, version 5.0 認定」
Which command is used to sync the hardware clock to the system clock? (Specify ONLY the command without any path or parameters.)
正解:
hwclocksbinhwclockusrsbinhwclock
Explanation:
The command that is used to sync the hardware clock to the system clock is:
hwclock --systohc
This command copies the current system time to the hardware clock, which runs even when the system is shut down. It is equivalent to the command hwclock -w12. The hardware clock is also called the BIOS clock or the RTC (Real Time Clock)3.
Explanation:
The command that is used to sync the hardware clock to the system clock is:
hwclock --systohc
This command copies the current system time to the hardware clock, which runs even when the system is shut down. It is equivalent to the command hwclock -w12. The hardware clock is also called the BIOS clock or the RTC (Real Time Clock)3.
In an xinetd configuration file, which attribute specifies the network address that will be used to provide the service?
正解:
bindinterface
Explanation:
The bind attribute in an xinetd configuration file specifies the network address that will be used to provide the service. It can be either an IP address or a hostname. If the bind attribute is not specified, xinetd will listen on all available addresses on the system. The bind attribute can be used to restrict the service to a specific interface or network. For example, bind = 192.168.1.100 will only allow the service to be accessed from the 192.168.1.0/24 network. The bind attribute can also be used to provide different configurations for the same service on different addresses. For example, one can have two telnet configuration files, one with bind = 192.168.1.100 and another with bind = 192.168.2.100, to offer different access rules or options for the telnet service on each address.
Reference:
xinetd - Wikipedia
17.4. xinetd Configuration Files - Red Hat Customer Portal
How to configure xinetd ? - Red Hat Customer Portal
Explanation:
The bind attribute in an xinetd configuration file specifies the network address that will be used to provide the service. It can be either an IP address or a hostname. If the bind attribute is not specified, xinetd will listen on all available addresses on the system. The bind attribute can be used to restrict the service to a specific interface or network. For example, bind = 192.168.1.100 will only allow the service to be accessed from the 192.168.1.0/24 network. The bind attribute can also be used to provide different configurations for the same service on different addresses. For example, one can have two telnet configuration files, one with bind = 192.168.1.100 and another with bind = 192.168.2.100, to offer different access rules or options for the telnet service on each address.
Reference:
xinetd - Wikipedia
17.4. xinetd Configuration Files - Red Hat Customer Portal
How to configure xinetd ? - Red Hat Customer Portal