Lpi LPIC-1 Exam 102, Part 2 of 2, version 5.0 - 102-500 Exam Practice Test
Which configuration file would be edited to change the default options for outbound SSH sessions?
Correct Answer: B
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Which parameter must be passed to ifconfig to activate a previously inactive network interface? (Specify the parameter only without any command, path or additional options)
Correct Answer:
up
Explanation:
The parameter that must be passed to ifconfig to activate a previously inactive network interface is up. The up parameter tells the kernel to activate the network interface and allow it to send and receive packets. The opposite of up is down, which deactivates the network interface. The up parameter is part of the topic 109.2: Basic network configuration, which is one of the objectives of the LPI Linux Administrator - 102 exam12. Reference: 1: https://learning.lpi.org/en/learning-materials/102-500/ 2: https://www.lpi.org/our-certifications/exam-102-objectives/
Explanation:
The parameter that must be passed to ifconfig to activate a previously inactive network interface is up. The up parameter tells the kernel to activate the network interface and allow it to send and receive packets. The opposite of up is down, which deactivates the network interface. The up parameter is part of the topic 109.2: Basic network configuration, which is one of the objectives of the LPI Linux Administrator - 102 exam12. Reference: 1: https://learning.lpi.org/en/learning-materials/102-500/ 2: https://www.lpi.org/our-certifications/exam-102-objectives/
The presence of what file will temporarily prevent all users except root from logging into the system? (Specify the full name of the file, including path.)
Correct Answer:
etcnologin
Explanation:
The /etc/nologin file is used to prevent all users except root from logging into the system. This file is usually created by the system administrator when the system is going down for maintenance or reboot. The file can contain a message that is displayed to the users who try to log in, explaining the reason for the system shutdown. The file is automatically removed by the system when it boots up again. Reference:
LPI 102-500 Exam Objectives, Topic 104: Administrative Tasks, 104.5 Manage user accounts LPI 102-500 Study Guide, Chapter 4: User and Group Management, Section 4.3: Preventing Users from Logging In
Explanation:
The /etc/nologin file is used to prevent all users except root from logging into the system. This file is usually created by the system administrator when the system is going down for maintenance or reboot. The file can contain a message that is displayed to the users who try to log in, explaining the reason for the system shutdown. The file is automatically removed by the system when it boots up again. Reference:
LPI 102-500 Exam Objectives, Topic 104: Administrative Tasks, 104.5 Manage user accounts LPI 102-500 Study Guide, Chapter 4: User and Group Management, Section 4.3: Preventing Users from Logging In
Which of the following statements is true if the UID of a regular user is identical to the GID of a group?
Correct Answer: D
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
On a regular users workstation the route command takes a long time before printing out the routing table. Which of the following errors does that indicate?
Correct Answer: D
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Which of the following tools used for DNS debugging, reports not only the response from the name server but also details about the query?
Correct Answer: E
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
What is the main difference between the batch and at commands?
Correct Answer: B
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
What output does the command seq 1 5 20 produce?
Correct Answer: C
Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.)
Correct Answer: B,E
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
What keyword is missing from this code sample of a shell script?
____ i in *.txt; do
echo $i
done
____ i in *.txt; do
echo $i
done
Correct Answer: B
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).
Which command makes the shell variable named VARIABLE visible to subshells?
Correct Answer: B
Explanation: Only visible for ExamsLabs members. You can sign-up / login (it's free).