102-500 Practice Lpi Verified Answers - Pass Your Exams For Sure! [2024]
Valid Way To Pass LPIC Level1's 102-500 Exam
Lpi 102-500 exam is intended for individuals who have already passed the LPIC-1 Exam 101, Part 1 of 2, version 5.0. 102-500 exam focuses on the advanced concepts of Linux administration, including system maintenance, kernel modules, and storage management. 102-500 exam is designed to validate the candidate's ability to configure, maintain, and troubleshoot Linux systems.
NEW QUESTION # 99
Which of the following commands is used to rotate, compress, and mail system logs?
- A. syslogd --rotate
- B. striplog
- C. logger
- D. logrotate
- E. rotatelog
Answer: D
NEW QUESTION # 100
A user was notgiven permission to use the CRON schedulingsystem. What file needs to be modified to provide that access? (Please specify the full path to the file)
Answer:
Explanation:
/etc/cron.allow
Explanation:
The /etc/cron.d/cron.allow file is a text file that contains the names of the users who are allowed to use the crontab command to create and manage their own cron jobs12. If this file exists, only the users listed in it can use the crontab command, and all other users are denied access12. If this file does not exist, the /etc/cron.d/cron.deny file is checked to see which users are not allowed to use the crontab command12. If neither file exists, only the root user can use the crontab command12.
To modify the /etc/cron.d/cron.allow file, the root user can use any text editor to add or remove the names of the users who will be allowed to use the crontab command1234. For example, to allow the user frank to use the crontab command, the root user can append the name frank to the /etc/cron.d/cron.allow file1234. The root user must always be included in this file, otherwise the superuser access to the crontab command will be denied4.
References: 1: Linux At, Batch, Atq, Atrm Command Help and Examples - Computer Hope 2: 107.2 Lesson 1
- Linux Professional Institute Certification Programs 3: /etc/cron.allow - Linux Bash Shell Scripting Tutorial Wiki - nixCraft 4: Controlling Access to crontab (System Administration Guide ... - Oracle
NEW QUESTION # 101
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 192.168.178.1 on wlan0.
- B. It would be passed to the router 192.168.1.1 on eth0.
- C. It would be passed to the default router 255.255.255.0 on eth0.
- D. It would be directly transmitted on the device eth0.
- E. It would be directly transmitted on the device wlan0.
Answer: B
Explanation:
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
NEW QUESTION # 102
What is the default name of the configuration file for the Xorg X11 server? (Specify the file name only without any path.)
Answer:
Explanation:
xorg.conf
NEW QUESTION # 103
What entry can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12?
- A. /var/log/messages | /dev/tty12
- B. syslog tty12
- C. mail.* /dev/tty12
- D. | /dev/tty12
- E. *.* /dev/tty12
Answer: E
Explanation:
The entry that can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12 is A. . /dev/tty12. This entry consists of a selector field and an action field, separated by a space or a tab. The selector field specifies the pattern of facilities and priorities that match the action. The action field specifies the destination where the matching messages are sent. In this case, the selector field is ., which means all facilities and all priorities. The action field is /dev/tty12, which is the device file for the console 12.
This means that any syslog message generated by the system will be displayed on the console 12, regardless of its facility or priority. This can be useful for debugging or monitoring purposes, but it can also be very noisy and distracting, as it will show all kinds of messages, including debug, info, notice, warning, err, crit, alert, and emerg12.
The other options are not correct. Option B. /var/log/messages | /dev/tty12 is invalid, as it uses a pipe (|) character in the selector field, which is not allowed. The pipe character can only be used in the action field to indicate that the matching messages are piped to an external program1. Option C. | /dev/tty12 is also invalid, as it has an empty selector field, which is not allowed. The selector field must specify at least one facility and one priority1. Option D. syslog tty12 is also invalid, as it has a missing period (.) between the facility and the priority in the selector field, and a missing slash (/) before the device file in the action field. The correct syntax for this option would be syslog.* /dev/tty12, which would display only the messages with the syslog facility and any priority on the console 121. Option E. mail.* /dev/tty12 is valid, but it would not display allsyslog messages generated by a system, but only the messages with the mail facility and any priority on the console
12. This would exclude the messages from other facilities, such as auth, cron, daemon, kern, user, etc1.
References: 1: syslog.conf (5) - Linux man page 2: Beginner's Guide to Syslogs in Linux [Real World Examples]
NEW QUESTION # 104
What information related to a user account is modified using the chage command?
- A. Set of commands available to the user
- B. Password expiry information
- C. Default ownership for new files
- D. Default permissions for new files
- E. Group membership
Answer: B
NEW QUESTION # 105
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?
- A. There may accidentally be more than one default router in which case a default router election has to be done on the network in order to choose one router as the default.
- B. The local routing information may be corrupted and must be re-validated using a routing protocol.
- C. One of the routers in the routing table is not available which causes the automatic router failure detection mechanism (ARF-D) to wait for a timeout.
- D. DNS resolution may not be working as route by default tries to resolve names of routers and destinations and may run into a timeout.
Answer: D
NEW QUESTION # 106
Which of the following is the best way to list all defined shell variables?
- A. echo $ENV
- B. set
- C. env
- D. env -a
Answer: B
NEW QUESTION # 107
When generating new authentication keys with SSH for a user, where should the private key be kept?
- A. SSH does not use private keys.
- B. On a CD-ROM or USB stick.
- C. Printed and kept in a secure place.
- D. Only on the computer where the key was created.
- E. On any trusted system from which the user will login.
Answer: E
NEW QUESTION # 108
Which crontab entry could be used to set the system time at regular intervals?
- A. 1 0 * * * runcron date ntp1.digex.net
- B. 1 0 * * * date ntp1.digex.net
- C. 1 0 * * * settime $d $t $24
- D. 1 0 * * * date $d $t $24
- E. 1 0 * * * ntpdate ntp1.digex.net
Answer: E
NEW QUESTION # 109
What is the purpose of the Sticky Keys feature in X?
- A. To prevent repeated input of a single character if the key is held down
- B. To ignore brief keystrokes according to a specified time limit
- C. To assist users who have difficulty holding down multiple keys at once
- D. To repeat the input of a single character
Answer: C
Explanation:
The Sticky Keys feature in X is an accessibility option that allows users to press modifier keys (such as Ctrl, Alt, Shift, or the Windows key) one at a time, instead of holding them down simultaneously, to perform keyboard shortcuts. For example, to copy something, a user can press Ctrl, release it, and then press C, instead of pressing Ctrl+C together. This can be helpful for users who have difficulty pressing multiple keys at once, or who prefer not to do so. References:
https://www.howtogeek.com/739764/how-to-turn-off-sticky-keys-on-windows-10/
https://geekflare.com/using-sticky-keys-in-windows/
NEW QUESTION # 110
After adding a new email alias to the configuration, which command must be run in order to ensure the MTA knows about it? (Specify the command without any path but including all required parameters.)
Answer:
Explanation:
newaliases, sendmail -bi
NEW QUESTION # 111
Which of the following statements is valid in the file /etc/nsswitch.conf?
- A. 192.168.168.4 dns-server
- B. multi on
- C. namespaces: net mount procs
- D. hosts: files dns
- E. include /etc/nsswitch.d/
Answer: D
NEW QUESTION # 112
What entry can you add to syslog.conf file to have all syslog messages generated by your system go to virtual console 12?
- A. /var/log/messages | /dev/tty12
- B. syslog tty12
- C. mail.* /dev/tty12
- D. | /dev/tty12
- E. *.* /dev/tty12
Answer: E
NEW QUESTION # 113
Which of the following fields can be found in the /etc/group file? (Choose THREE correct answers.)
- A. The list of users that belong to the group.
- B. The home directory of the group.
- C. The password of the group.
- D. The description of the group.
- E. The name of the group.
Answer: A,C,E
NEW QUESTION # 114
Which command is used to set the hostname of the local system? (Specify ONLY the command without any path or parameters.)
Answer:
Explanation:
hostname
Explanation:
The hostname command is used to set the hostname of the local system. The hostname command can take a single argument, which is the new hostname to be assigned to the system. For example, to set the hostname to linux, one can run:
hostname linux
The hostname command can also be used without any arguments to display the current hostname of the system. For example, to show the current hostname, one can run:
hostname
The hostname command only changes the hostname temporarily, meaning that the original hostname will be restored after a reboot. To change the hostname permanently, one has to edit the configuration files that store the hostname information, such as /etc/hostname, /etc/hosts, /etc/sysconfig/network, etc. The exact files and commands may vary depending on the Linux distribution and the system initialization process. For more details, please refer to the web search results1 or the question answering results2. References:
NEW QUESTION # 115
What is the command to delete the default gateway from the system IP routing table? (Choose TWO correct answers.)
- A. ip route del default
- B. sysctl ipv4.default_gw=0
- C. route del default
- D. ifconfig unset default
- E. netstat -r default
Answer: A,C
NEW QUESTION # 116
Which file used by XDM specifies the default wallpaper?
- A. /etc/X11/xdm/Defaults
- B. /etc/X11/xdm.conf
- C. /etc/X11/defaults.conf
- D. /etc/X11/xdm/Xsetup
Answer: D
NEW QUESTION # 117
Which of the following fields can be found in the /etc/group file? (Choose two.)
- A. The list of users that belong to the group.
- B. The home directory of the group.
- C. The description of the group.
- D. The name of the group.
- E. The default group ACL.
Answer: A,D
NEW QUESTION # 118
Which configuration file would be edited to change the default options for outbound SSH sessions?
- A. /etc/ssh/ssh_config
- B. /etc/ssh/client
- C. /etc/ssh/ssh_client
- D. /etc/ssh/sshd_config
- E. /etc/ssh/ssh
Answer: A
NEW QUESTION # 119
Which of the following fields are available in both the global /etc/crontab file as well as in user-specific crontab files? (Select TWO correct answers)
- A. Username
- B. Minute
- C. Command
- D. Year
Answer: B,C
NEW QUESTION # 120
Which of the following programs can be used to determine the routing path to a given destination?
- A. netstat
- B. dig
- C. route
- D. ping
- E. traceroute
Answer: E
Explanation:
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. References:
* 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
NEW QUESTION # 121
......
Lpi 102-500 Pre-Exam Practice Tests | Actualtests4sure: https://www.actualtests4sure.com/102-500-test-questions.html
102-500 practice test questions, answers, explanations: https://drive.google.com/open?id=1-DUyfMn6JTi19humZ_npLtsesRhaIFhT

