LPIC Level1 102-500 Practice Test Engine Try These 236 Exam Questions [Q38-Q56]

Share

LPIC Level1 102-500 Practice Test Engine: Try These 236 Exam Questions

Guaranteed Success in LPIC Level1 102-500 Exam Dumps

NEW QUESTION # 38
Which of the following are valid host addresses for the subnet 203.0.113.64/28? (Choose two.)

  • A. 203.0.113.65
  • B. 203.0.113.81
  • C. 203.0.113.78
  • D. 203.0.113.80
  • E. 203.0.113.64

Answer: A,C


NEW QUESTION # 39
Which of the following statements about sytemd-journald are true? (Choose three.)

  • A. It only processes messages of systemd and not messages of any other tools.
  • B. It supports syslog facilities such as kern, user, and auth.
  • C. It can pass log messages to syslog for further processing.
  • D. It is incompatible with syslog and cannot be installed on a system using regular syslog.
  • E. It maintains metadata such as _UID or _PID for each message.

Answer: B,C,E

Explanation:
systemd-journald is a system service that collects and stores logging data from various sources, such as kernel, user-mode programs, and services1. It creates and maintains structured, indexed journals that include metadata and binary data where necessary1. The journal format is secure and unfakeable1. systemd-journald is not incompatible with syslog and can coexist with it. It can forward log messages to a syslog daemon for further processing, filtering, or storage2. This can be enabled by setting the ForwardToSyslog option to yes in the /etc/systemd/journald.conf file2. systemd-journalddoes not only process messages of systemd, but also messages of any other tools that use the standard logging interfaces, such as syslog(3), sd_journal_print(3), or systemd-cat(1)1. systemd-journald also supports syslog facilities, such as kern, user, and auth, which are used to specify the type of program that is logging the message3. These facilities can be used to filter the journal entries by using the -p or --priority option of the journalctl command4. For example, to show only kernel messages, we can use journalctl -p kern4. References:
* systemd-journald.service
* Introduction to the Systemd journal
* systemd/Journal
* journalctl: Query the systemd Journal


NEW QUESTION # 40
Fill in Blanks
An administrator wants to determine the geometry of a particular window in X, so she issues the __________ -metric command and then clicks on the window.

Answer:

Explanation:
usrbinxwininfoxwininfo
Explanation:
The xwininfo command is a utility for displaying information about windows in X. It can show various attributes of a window, such as its location, size, depth, border width, visual class, colormap, map state, and event masks. The -metric option specifies that all dimensions should be displayed in metric units (millimeters) rather than pixels. By issuing the xwininfo -metric command and then clicking on a window, the administrator can determine the geometry of that window, including the decorations, in millimeters. Reference:
xwininfo(1) - Arch manual pages
[command line -


NEW QUESTION # 41
Which of the following are tasks handled by a display manager like XDM or KDM? (Choose TWO correct answers.)

  • A. Start and prepare the desktop environment for the user.
  • B. Configure additional devices like new monitors or projectors when they are attached.
  • C. Create an X11 configuration file for the current graphic devices and monitors.
  • D. Handle the login of a user.
  • E. Lock the screen when the user was inactive for a configurable amount of time.

Answer: A,D


NEW QUESTION # 42
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 router 192.168.1.1 on eth0.
  • B. It would be passed to the default router 255.255.255.0 on eth0.
  • C. It would be directly transmitted on the device eth0.
  • D. It would be directly transmitted on the device wlan0.
  • E. It would be passed to the default router 192.168.178.1 on wlan0.

Answer: A

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 # 43
On a system using system-journald, which of the following command add the message Howdy to the system log? (Choose two correct answers.)

  • A. Appond Howdy
  • B. Echo Howdy > /dev/journal
  • C. Logger Howday
  • D. Syslend-cst echo Howdy
  • E. Journalct1 and howdy

Answer: D,E


NEW QUESTION # 44
Which of the following comparison operators for test work on elements in the file system? (Choose two.)

  • A. -d
  • B. -lt
  • C. -z
  • D. -f
  • E. -eq

Answer: A,D

Explanation:
The comparison operators for test that work on elements in the file system are -d and -f. The -d operator tests if a given file name refers to a directory, and returns true if it does. The -f operator tests if a given file name refers to a regular file, and returns true if it does. These operators are part of the topic 105.3: Perform basic file management, which is one of the objectives of the LPI Linux Administrator - 102 exam12. Reference: 1: LPI Linux Administrator - 102 (LPIC-1) 2: Exam 102 Objectives


NEW QUESTION # 45
On a Linux system with shadow passwords enabled, which file in the file system contains the password hashes of all local users? (Specify the full name of the file, including path.)

Answer:

Explanation:
etcshadow
Explanation:
On a Linux system with shadow passwords enabled, the file that contains the password hashes of all local users is /etc/shadow. This file is a replacement for the password field in /etc/passwd, which is a world-readable file that contains basic information about users. The /etc/shadow file is not readable by regular users, and it stores the encrypted passwords (or hashes) of each user, along with other information such as password expiration dates, minimum and maximum password ages, and password warning periods. The /etc/shadow file has nine colon-delimited fields for each user:
Username: The name used when the user logs into the system.
Password: The encrypted password of the user, or a special character that indicates the password status. For example, an asterisk (*) means the account is locked, and an exclamation mark (!) means the password is expired.
Last Password Change: The date of the last password change, expressed as the number of days since January 1, 1970.
Minimum Password Age: The minimum number of days required between password changes. A zero means the password can be changed anytime.
Maximum Password Age: The maximum number of days the password is valid. After this number of days, the password must be changed. A zero means the password never expires.
Password Warning Period: The number of days before the password expires that the user will be warned. A zero means no warning is given.
Password Inactivity Period: The number of days after the password expires that the account will be disabled. A negative value means the account is never disabled.
Account Expiration Date: The date when the account will be disabled, expressed as the number of days since January 1, 1970. A zero means the account never expires.
Reserved Field: A field for future use.
The /etc/shadow file can be modified by using the commands passwd and chage, which are used to change the password and the password aging information of a user, respectively. The /etc/shadow file should not be edited directly, but always through the tools provided by the distribution. For more details, see the shadow manual page.
Reference:
LPIC-1 Exam 102 Objectives, Topic 110: Security, Subtopic 110.2: Use sudo to manage access to the root account, Weight: 2, Key Knowledge Areas: Configure sudo and sudoers. Use sudo to execute commands as another user.
LPIC-1 Exam 102 Learning Materials, Topic 110: Security, Subtopic 110.2: Use sudo to manage access to the root account, Section 110.2.1: sudo and sudoers, Page 3-5.


NEW QUESTION # 46
Your senior administrator asked you to change the default background of his machine, which uses XDM. Which file would you edit to achieve this?

  • A. /etc/X11/xdm/Defaults
  • B. /etc/X11/xdm.conf
  • C. /etc/X11/xdm/Xsetup
  • D. /etc/X11/defaults.conf

Answer: C


NEW QUESTION # 47
Which command makes the shell variable named VARIABLE visible to subshells?

  • A. export $VARIABLE
  • B. env VARIABLE
  • C. set $VARIABLE
  • D. set VARIABLE
  • E. export VARIABLE

Answer: E

Explanation:
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. References:
* [LPI Linux Essentials - Topic 105: Shells, Scripting and Data Management]
* [LPI Linux Administrator - Exam 102 Objectives - Topic 105: Shells and Shell Scripting]


NEW QUESTION # 48
Which command is used to set restrictions on the size of a core file that is created for a user when a program crashes?

  • A. ulimit
  • B. core
  • C. edquota
  • D. quota

Answer: A

Explanation:
The ulimit command is used to set or display the limitations on the system resources available to the current shell and its descendants. One of the resources that can be controlled by ulimit is the maximum size of a core file that is created when a program crashes. A core file is a snapshot of the memory and registers of a process at the time of termination, which can be used for debugging purposes. By default, the core file size limit is zero, which means no core file will be generated. To change the core file size limit, the option -c can be used with ulimit, followed by a number that represents the maximum number of blocks (usually 512 bytes) that can be written to a core file. For example, the command ulimit -c 1000 will set the core file size limit to 512000 bytes. To remove the core file size limit, the option -c can be used with ulimit, followed by unlimited. For example, the command ulimit -c unlimited will allow core files of any size to be created. Reference:
LPIC-1 Exam 102 Objectives, Topic 103: Linux Installation and Package Management, Subtopic 103.3: Manage shared libraries, Weight: 1, Key Knowledge Areas: Identify the location and purpose of important file and directories as defined in the FHS, Objective: Use the ulimit command to set or display limitations on the system resources available to the current shell and its descendants.
LPIC-1 Exam 102 Learning Materials, Topic 103: Linux Installation and Package Management, Subtopic 103.3: Manage shared libraries, Section 103.3.2: ulimit, Page 14-15.


NEW QUESTION # 49
Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?

  • A. 30 0 * * 0 myscript
  • B. 0 0-23 * * 30 myscript
  • C. 30 0-23 * * 0 myscript
  • D. 0 * * * 30 myscript
  • E. 30 * * * 6 myscript

Answer: C


NEW QUESTION # 50
Which configuration file contains the default options for SSH clients?

  • A. /etc/ssh/sshd_config
  • B. /etc/ssh/ssh_config
  • C. /etc/ssh/ssh
  • D. /etc/ssh/client
  • E. /etc/ssh/ssh_client

Answer: B


NEW QUESTION # 51
Which of the following is NOT a Mail Transport Agent?

  • A. qmail
  • B. sendmail
  • C. exim
  • D. postfix
  • E. mail

Answer: E


NEW QUESTION # 52
When attempting to send a file to another user securely with GPG, which of the following actions must be done?

  • A. Encrypt the file using your private key.
  • B. Sign the file with your public key.
  • C. Encrypt the file using their private key.
  • D. Encrypt the file using their public key.
  • E. Encrypt the file using your public key.

Answer: D


NEW QUESTION # 53
An administrator wants to determine the geometry of a particular window in X, so she issues the __________
-metric command and then clicks on the window.

Answer:

Explanation:
/usr/bin/xwininfo, xwininfo


NEW QUESTION # 54
Your senior administrator asked you to change the default background of his machine, which uses XDM.
Which file would you edit to achieve this?

  • A. /etc/X11/xdm/Defaults
  • B. /etc/X11/xdm.conf
  • C. /etc/X11/xdm/Xsetup
  • D. /etc/X11/defaults.conf

Answer: C


NEW QUESTION # 55
Which of the following protocols is related to the term open relay?

  • A. NTP
  • B. LDAP
  • C. SMTP
  • D. POP3
  • E. IMAP

Answer: C


NEW QUESTION # 56
......


To pass the Lpi 102-500 exam, candidates need to have a thorough understanding of Linux administration concepts and hands-on experience in Linux administration. Candidates can prepare for the exam by taking online courses, reading study materials, and practicing on Linux systems. 102-500 exam is computer-based and consists of 60 multiple-choice questions. Candidates have 90 minutes to complete the exam, and the passing score is 500 out of 800.

 

Test Engine to Practice 102-500 Test Questions: https://dumps4download.actualvce.com/Lpi/102-500-valid-vce-dumps.html