102 500 Preguntas
102 500 Preguntas
102 500 Preguntas
LPI Level 1
Version: 2.0
LPI 102-500 Exam
QUESTION NO: 1 CORRECT TEXT
Which command is used to set the hostname of the local system? (Specify only the command
without any path or parameters.)
Answer:
hostname
QUESTION NO: 2
A.
2001:db8:0g21::1
B.
2001::db8:4581::1
C.
2001:db8:3241::1
D.
2001%db8%9990%%1
E.
2001.db8.819f..1
Answer: C
Explanation:
What command, depending on its options, can display the open TCP connections, the routing
tables, as well as network interface statistics? (Specify only the command without any path or
parameters.)
Answer:
netstat
prep4sure.com 2
LPI 102-500 Exam
Which command included in NetworkManager is a curses application which provides easy acces
to the NetworkManager on the command line? (Specify only the command without any path or
parameters.)
Answer:
nmtui
QUESTION NO: 5
Which if the following tools, used for DNS debugging, reports not only the response from the name
sever but also details about the query?
A.
dnsq
B.
hostname
C.
dig
D.
dnslookup
E.
zoneinfo
Answer: C
Explanation:
QUESTION NO: 6
A.
prep4sure.com 3
LPI 102-500 Exam
multi on
B.
192.168.168.4 dns-server
C.
namespaces: net mount procs
D.
include /etc/nsswitch.d/
E.
E. hosts: files dns
Answer: E
Explanation:
QUESTION NO: 7
Which of the following connection types, as seen in nmcli connection show, may exist in
NetworkManager? (Choose three.)
A.
tcp
B.
ethernet
C.
wifi
D.
ipv6
E.
bridge
Answer: B,C,E
Explanation:
QUESTION NO: 8
prep4sure.com 4
LPI 102-500 Exam
On a Linux workstation, the route command takes a long time before printing out the routing table.
Which of the following errors does that indicate?
A.
The local routing information may be corrupted and must be re-validated using a routing protocol.
B.
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.
C.
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.
D.
The Linux Kernel Routing Daemon (LKRD) is not running and should be started using its init script
or systemd unit.
E.
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: E
Explanation:
QUESTION NO: 9
What is true about the Hop Limit field in the IPv6 header?
A.
The field is not changed during the transport of a package.
B.
The field is transmitted within a hop-by-hop extension header.
C.
Each router forwarding the packet increases the field’s value.
D.
Each router forwarding the packet decreases the field’s value.
E.
For multicast packages, the field’s value is always 1.
prep4sure.com 5
LPI 102-500 Exam
Answer: D
Explanation:
QUESTION NO: 10
A.
nmcli ethernet
B.
nmcli device
C.
nmcli wifi
D.
nmcli address
E.
nmcli connection
Answer: B,E
Explanation:
QUESTION NO: 11
Which of the following changes may occur as a consequence of using the command ip? (Choose
three.)
A.
Network interfaces may become active or inactive.
B.
New name servers may be added to the resolver configuration.
C.
The system’s host name may change.
D.
prep4sure.com 6
LPI 102-500 Exam
IP addresses may change.
E.
The routing table may change.
Answer: A,D,E
Explanation:
QUESTION NO: 12
How many IP addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/26?
A.
6
B.
14
C.
30
D.
62
E.
126
Answer: D
Explanation:
QUESTION NO: 13
Which of the following IPv4 networks are reserved by IANA for private address assignment and
private routing? (Choose three.)
A.
10.0.0.0/8
B.
127.0.0.0/8
prep4sure.com 7
LPI 102-500 Exam
C.
169.255.0.0/16
D.
172.16.0.0/12
E.
192.168.0.0/16
Answer: A,D,E
Explanation:
QUESTION NO: 14
Which of the following commands configure network interfaces based on the system’s existing
distribution-specific configuration files? (Choose two.)
A.
ifconf
B.
ifdown
C.
ifpause
D.
ifstart
E.
ifup
Answer: B,E
Explanation:
QUESTION NO: 15
Which of the following statements is true if the UID of a regular user is identical to the GID of a
group?
prep4sure.com 8
LPI 102-500 Exam
A.
UID have precedence over GIDs, therefore the user is available while the group doesn’t.
B.
The user as well as the group are not available to avoid ambiguity due to the ID conflict.
C.
UIDs and GIDs are independent of each other, therefore the user as well as the group are still
available.
D.
The user is the only member of the group, even if the group configuration contains other members.
E.
GIDs have precedence over UIDs, therefore the group is available while the user isn’t.
Answer: C
Explanation:
QUESTION NO: 16
A.
The timestamp of the user’s last login
B.
The user’s private SSH keys
C.
The hashed password of the user
D.
The numerical user ID (UID)
E.
The path to the user’s home directory
Answer: C
Explanation:
prep4sure.com 9
LPI 102-500 Exam
QUESTION NO: 17
A.
systemctl-timer show
B.
timectl list
C.
systemctl –t
D.
systemctl list-timers
E.
timeq
Answer: D
Explanation:
QUESTION NO: 18
Which of the following tasks can the date command accomplish? (Choose two.)
A.
Set the system’s date and time.
B.
Set the system’s date but not the time.
C.
Calculate the time span between two dates.
D.
Print a calendar for a month or a year.
E.
Display time in a specific format.
Answer: A,E
prep4sure.com 10
LPI 102-500 Exam
Explanation:
Which file, if present, must contain all users that are allowed to use the cron scheduling system?
(Specify the full name of the file, including path.)
Answer:
crontab
QUESTION NO: 20
A.
Commands the user can run using sudo.
B.
The absolute path to the user’s home directory.
C.
Which printers are available for the new user.
D.
The SSH keys used to login to the new account.
E.
The numeric user ID (UID) of the user.
Answer: B,E
Explanation:
QUESTION NO: 21
prep4sure.com 11
LPI 102-500 Exam
A.
It is a plain text file containing a string such as Europe/Berlin
B.
It is created and maintained by the NTP service based on the location of the system’s IP address.
C.
It is a symlink to /sys/device/clock/ltime and always contains the current local time.
D.
After changing this file, newtzconfig has to be run to make the changes effective.
E.
It is either a symlink to or a copy of a timezone information file such as
/usr/share/zoneinfo/Europe/Berlin.
Answer: E
Explanation:
QUESTION NO: 22
A.
Timer units can only be defined within a service unit’s file.
B.
The command executed by the timer is specified in the timer unit’s [Cmd] section.
C.
A dedicated system service, systemd-cron, handles the execution of timer units.
D.
Timer units only exist in the system scope and are not available for users.
E.
Each systemd timer unit controls a specific systemd service unit.
Answer: E
Explanation:
prep4sure.com 12
LPI 102-500 Exam
QUESTION NO: 23
Which of the following fields are available in the standard format of both the global /etc/crontab file
as well as in user-specific crontab files? (Choose two.)
A.
Year
B.
Minute
C.
Username
D.
Effective group ID
E.
Command
Answer: B,D
Explanation:
QUESTION NO: 24
Which of the following commands should be executed when starting a login shell in order to
change the language of messages for an internationalized program to Portuguese (pt)?
A.
export LANGUAGE=“pt”
B.
export LC_MESSAGES=“pt”
C.
export UI_MESSAGES=“pt”
D.
export MESSAGE=“pt”
E.
export ALL_MESSAGES=“pt”
prep4sure.com 13
LPI 102-500 Exam
Answer: B
Explanation:
QUESTION NO: 25
A.
/etc/pgroup
B.
/etc/shadow
C.
/etc/passwd
D.
/etc/group
E.
/etc/gshadow
Answer: C
Explanation:
QUESTION NO: 26
Which of the following steps prevents a user from obtaining an interactive login session?
A.
Setting the UID for the user to 0.
B.
Running the command chsh –s /bin/false with the user name.
C.
Removing the user from the group staff.
D.
Adding the user to /etc/noaccess.
prep4sure.com 14
LPI 102-500 Exam
E.
Creating a .nologin file in the user’s home directory.
Answer: B
Explanation:
Which command included in systemd supports selecting messages from the systemd journal by
criteria such as time or unit name? (Specify only the command without any path or parameters.)
Answer:
journalctl
QUESTION NO: 28
Which of the following statements about systemd-journald are true? (Choose three.)
A.
It is incompatible with syslog and cannot be installed on a system using regular syslog.
B.
It only processes messages of systemd and not messages of any other tools.
C.
It can pass log messages to syslog for further processing.
D.
It maintains metadata such as _UID or _PID for each message.
E.
It supports syslog facilities such as kern, user, and auth.
Answer: C,D,E
Explanation:
Answer:
newaliases
QUESTION NO: 30
Which option in the chrony configuration file changes the initial interval of polls to a NTP server in
order to speed up the initial synchronization?
A.
iburst
B.
quickstart
C.
fast
D.
D. fsync
E.
flood
Answer: A
Explanation:
QUESTION NO: 31
Which of the following commands is used to rotate, compress, and mail system logs?
A.
logrotate
B.
striplog
C.
prep4sure.com 16
LPI 102-500 Exam
syslogd –-rotate
D.
rotatelog
E.
logger
Answer: A
Explanation:
QUESTION NO: 32
A.
Because the timezone is included in checksum calculations and timezone changes invalidate
existing checksums.
B.
Because the time zone is saved as part of the modification times of files and cannot be changed
after a file is created.
C.
Because the environment variables LANG and LC_MESSAGES are, by default, set according to
the time zone.
D.
Because NTP chooses servers nearby based on the configured time zone.
E.
Because the conversion of Unix timestamps to local time relies on the time zone configuration.
Answer: E
Explanation:
Which command, available with all sendmail-compatible MTAs, is used to list the contents of the
prep4sure.com 17
LPI 102-500 Exam
MTA’s mail queue? (Specify only the command without any path or parameters.)
Answer:
mailq
What is the top-level directory which contains the configuration files for CUPS? (Specify the full
path to the directory.)
Answer:
/etc/cups/ cups-files.conf
QUESTION NO: 35
A.
lpd
B.
lpr
C.
lp
D.
lsq
E.
lpq
Answer: E
Explanation:
QUESTION NO: 36
prep4sure.com 18
LPI 102-500 Exam
Which of the following entries in /etc/syslog.conf writes all mail related events to the file
/var/log/maillog and sends all critical events to the remote server logger.example.com?
A.
mail.*/var/log/maillog
mail,[email protected]
B.
mail.*/var/log/maillog
mail.critsyslog://logger.example.org
C.
mail/var/log/maillog
D.
mail.*/var/log/maillog
E.
mail */var/log/maillog
mail [email protected]
Answer: D
Explanation:
Which option in the /etc/ntp.conf file specifies an external NTP source to be queried for time
information? (Specify only the option without any values or parameters.)
Answer:
server
QUESTION NO: 38
B.
POP3
C.
NTP
D.
IMAP
E.
LDAP
Answer: A
Explanation:
QUESTION NO: 39
Which of the following commands displays all environment and shell variables?
A.
getargs
B.
lsenv
C.
ls
D.
env
E.
lsshell
Answer: D
Explanation:
QUESTION NO: 40
prep4sure.com 20
LPI 102-500 Exam
Which of the following comparison operators for test work on elements in the file system? (Choose
two.)
A.
–z
B.
–eq
C.
–d
D.
–f
E.
–lt
Answer: C,D
Explanation:
QUESTION NO: 41
A.
The process ID of the current shell.
B.
The process ID for the following command.
C.
The process ID of the last command executed.
D.
The process ID of the last command which has been placed in the background.
E.
The process ID of the echo command.
Answer: A
Explanation:
prep4sure.com 21
LPI 102-500 Exam
QUESTION NO: 42
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:
QUESTION NO: 43
done
A.
result: 6 5 4
B.
result: 1 2 3 4 5 6
C.
result: 3 4 5 6 2 1
D.
prep4sure.com 22
LPI 102-500 Exam
result: 6 5 4 3 2 1
E.
result: 3 2 1
Answer: C
Explanation:
QUESTION NO: 44
Which of the following configuration files should be modified to globally set shell variables for all
users?
A.
/etc/profile
B.
/etc/bashrc
C.
~/.bash_profile
D.
/etc/.bashrc
E.
/etc/shellenv
Answer: A
Explanation:
QUESTION NO: 45
A.
A continuous stream of numbers increasing in increments of 10 until the command is stopped.
B.
It creates no output because a second parameter is missing.
prep4sure.com 23
LPI 102-500 Exam
C.
The number 0 through 9 with one number per line.
D.
The number 10 to standard output.
E.
The numbers 1 through 10 with one number per line.
Answer: E
Explanation:
What command list the aliases defined in the current Bash shell? (Specify only the command
without any path or parameters.)
Answer:
alias
QUESTION NO: 47
Which of the following commands can be used to limit the amount of memory a user may use?
A.
umask
B.
usermod
C.
passwd
D.
ulimit
E.
chage
Answer: D
prep4sure.com 24
LPI 102-500 Exam
Explanation:
QUESTION NO: 48
A.
It must be sent by any SSH client in addition to a user key in order to identify the client’s host.
B.
It is root key by which all user SSH keys must be signed.
C.
It provides the server’s identity information to connecting SSH clients.
D.
It authenticates any user that logs into a remote machine from the key’s host.
E.
It is used by system services like cron, syslog or a backup job to automatically connect to remote
hosts.
Answer: C
Explanation:
QUESTION NO: 49
A.
Manage and adjust bandwidth used by TCP services.
B.
Bind a network service to a TCP port.
C.
Encapsulate TCP messages in IP packets.
D.
Add SSL support to plain text TCP services.
prep4sure.com 25
LPI 102-500 Exam
E.
Limit access to a network service.
Answer: E
Explanation:
QUESTION NO: 50
A.
Jane can run /bin/id only after specifying her password.
B.
Jane can run /sbin/fdisk after specifying root’s password.
C.
Jane can run /sbin/fdisk after specifying her password.
D.
Jane can run /bin/kill without specifying a password.
E.
Jane can run /bin/id without specifying her password.
Answer: C,D,E
Explanation:
QUESTION NO: 51
Which configuration file contains the default options for SSH clients?
A.
/etc/ssh/sshd_config
prep4sure.com 26
LPI 102-500 Exam
B.
/etc/ssh/ssh
C.
/etc/ssh/ssh_config
D.
/etc/ssh/client
E.
/etc/ssh/ssh_client
Answer: C
Explanation:
QUESTION NO: 52
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.
/etc/profile
B.
/etc/xinetd.conf
C.
/etc/ports
D.
/etc/services
E.
/etc/host.conf
Answer: D
Explanation:
QUESTION NO: 53
prep4sure.com 27
LPI 102-500 Exam
Which of the following commands can identify the PID od a process which opened a TCP port?
A.
ptrace
B.
strace
C.
debug
D.
lsof
E.
nessus
Answer: D
Explanation:
When using X11 forwarding in SSH, what environment variable is automatically set in the remote
shell in order to help applications to connect to the correct X11 server? (Specify only the
environment variable without any additional commands or values.)
Answer:
DISPLAY
The presence of what file will temporarily prevent all users except root from logging into a system?
(Specify the full name of the file, including path.)
Answer:
/sbin/nologin
QUESTION NO: 56
prep4sure.com 28
LPI 102-500 Exam
Which of the following commands preloads and manages existing SSH keys that are used for
automatic authentication while logging in to order machines using SSH?
A.
sshd
B.
ssh-keyring
C.
ssh-keygen
D.
ssh-pki
E.
ssh-agent
Answer: C
Explanation:
QUESTION NO: 57
On a machine running several X servers, how do programs identify the different instances of the
X11 server?
A.
By a fixed UUID that is defined in the X11 configuration file.
B.
By a display name like: 1.
C.
By the name of the user that runs the X server like x11:bob.
D.
By a device name like /dev/X11/xservers/1.
E.
By a unique IPv6 address from the fe80::/64 subnet.
Answer: B
Explanation:
prep4sure.com 29
LPI 102-500 Exam
QUESTION NO: 58
A.
It manages virtual keyboards on touch screen displays.
B.
It reads the parameters of the attached monitors and creates an appropriate X11 configuration.
C.
It displays lines and markers to help people use speed reading techniques.
D.
It manages and displays files that contain e-books.
E.
It reads displayed text to accommodate the needs of blind or visually impaired people.
Answer: E
Explanation:
QUESTION NO: 59
The X11 configuration file xorg.conf is grouped into section. How is the content of the section
SectionName represented?
A.
It is placed in curly brackets as in Section SectionName {…}.
B.
It is placed between the tags <Section name=“SectionName”> and </Section>.
C.
It is placed between a line containing Section “SectionName” and a line containing EndSection.
D.
It is placed after the row [SectionName].
E.
It is placed after an initial unindented Section “SectionName” and must be indented by exactly one
prep4sure.com 30
LPI 102-500 Exam
tab character.
Answer: C
Explanation:
QUESTION NO: 60
A.
Connecting local USB devices to remote applications.
B.
Accessing graphical applications on a remote host.
C.
Replacing Xorg as local X11 server.
D.
Downloading and locally installing applications from a remote machine.
E.
Uploading and running a binary program on a remote machine.
Answer: A,D
Explanation:
QUESTION NO: 61
A.
/var/jlog/ and /var/jlogd/
B.
/proc/log/ and /proc/klog/
C.
/run/log/journal/ or /var/log/journal/
prep4sure.com 31
LPI 102-500 Exam
D.
/var/log/syslog.bin or /var/log/syslog.jrn
E.
/etc/systemd/journal/ or /usr/lib/systemd/journal/
Answer: C
Explanation:
QUESTION NO: 62
A.
With any MTA, the sendmail command must be run periodically by the cron daemon.
B.
When using systemd, sendmail is an alias to relayctl.
C.
The sendmail command prints the MTA’s queue history of which mails have been sent
successfully.
D.
It is only available when the sendmail MTA is installed.
E.
All common MTAs, including Postfix and Exim, provide a sendmail command.
Answer: E
Explanation:
QUESTION NO: 63
Which file inside the CUPS configuration directory contains the settings of the printers?
A.
cups-devices.conf
B.
prep4sure.com 32
LPI 102-500 Exam
snmp.conf
C.
printers.conf
D.
printcap.conf
E.
cupsd.conf
Answer: C
Explanation:
Which file is processed by newaliases? (Specify the full name of the file, including path.)
Answer:
/etc/mail/aliases
QUESTION NO: 65
A.
local5
B.
accounting
C.
mail
D.
postmaster
E.
remote
Answer: A,C
prep4sure.com 33
LPI 102-500 Exam
Explanation:
QUESTION NO: 66
Which of the following parameters are used for journalctl to limit the time frame of the output?
(Choose two.)
A.
--since=
B.
--from=
C.
--until=
D.
--upto=
E.
--date=
Answer: A,C
Explanation:
QUESTION NO: 67
A.
When configured correctly ~/.forward can be used to forward each incoming mail to one or more
other recipients.
B.
After editing ~/.forward the user must run newaliases to make the mail server aware of the
changes.
C.
Using ~/.forward, root may configure any email address whereas all other users may configure
only their own addresses.
prep4sure.com 34
LPI 102-500 Exam
D.
As ~/.forward is owned by the MTA and not writable by the user, it must be edited using the
editaliases command.
E.
By default, only ~/.forward files of users in the group mailq are processed while all other user’s
~/.forward files are ignored.
Answer: A
Explanation:
QUESTION NO: 68
Which of the following commands display a list of jobs in the print queue? (Choose two.)
A.
cups --list
B.
lprm -l
C.
lpstat
D.
lpr -q
E.
lpq
Answer: C,E
Explanation:
QUESTION NO: 69
On a system using systemd-journald, which of the following commands add the message Howdy
to the system log? (Choose two.)
A.
prep4sure.com 35
LPI 102-500 Exam
append Howdy
B.
logger Howdy
C.
systemd-cat echo Howdy
D.
echo Howdy > /dev/journal
E.
journalctl add Howdy
Answer: E
Explanation:
QUESTION NO: 70
Which of the following options in the chrony configuration file define remote time sources?
(Choose two.)
A.
source
B.
clock
C.
remote
D.
pool
E.
server
Answer: D,E
Explanation:
prep4sure.com 36
LPI 102-500 Exam
Which command is used to sync the hardware clock to the system clock? (Specify only the
command without any path or parameters.)
Answer:
hwclock
QUESTION NO: 72
A.
The skew in time between the system clock and the computer’s hardware clock.
B.
The physical location and the timezone configuration.
C.
Changes in the time zone of the current computer’s location.
D.
Adjustment needed to support Daylight Saving Time.
E.
The skew in time between the system clock and the reference clock.
Answer: E
Explanation:
QUESTION NO: 73
If an alias ls exists, which of the following commands updates the alias to point to the command ls
-l instead of the alias’s current target?
A.
set ls=’ls -l’
B.
alias ls=’ls -l’
C.
alias --force ls=’ls -l’
prep4sure.com 37
LPI 102-500 Exam
D.
alias --update ls ls=’ls -l’
E.
realias ls=’ls -l’
Answer: B
Explanation:
QUESTION NO: 74
Which of the following commands puts the output of the command date into the shell variable
mydate?
A.
mydate=”date”
B.
mydate=”exec date”
C.
mydate=”$((date))”
D.
mydate=”$(date)”
E.
mydate=”${date}”
Answer: D
Explanation:
QUESTION NO: 75
A.
The process ID of the echo command.
B.
prep4sure.com 38
LPI 102-500 Exam
The exit value of the command executed immediately before echo.
C.
The process ID which will be used for the next command.
D.
The exit value of the echo command.
E.
The process ID of the current shell.
Answer: B
Explanation:
QUESTION NO: 76
Which of the following files is not read directly by a Bash login shell?
A.
~/.bashrc
B.
~/.bash_profile
C.
~/.bash_login
D.
~/.profile
E.
/etc/profile
Answer: A
Explanation:
QUESTION NO: 77
prep4sure.com 39
LPI 102-500 Exam
A.
It must be executable.
B.
It must call the binary of the login shell.
C.
It must use a valid shell script syntax.
D.
It must start with a shebang.
E.
It must be readable for its owner only.
Answer: E
Explanation:
QUESTION NO: 78
What is true regarding the statement beginning with #! that is found in the first line of script?
(Choose two.)
A.
It prevents the scripts from being executed until the ! is removed.
B.
it triggers the installation of the script’s interpreter.
C.
It specifies the path and the arguments of the interpreter used to run the script.
D.
It defines the character encoding of the script.
E.
It is a comment that is ignored by the script interpreter.
Answer: B,C
Explanation:
prep4sure.com 40
LPI 102-500 Exam
QUESTION NO: 79
A.
1
10
15
B.
1
11
16
C.
1
D.
2
E.
5
10
15
20
Answer: B
prep4sure.com 41
LPI 102-500 Exam
Explanation:
QUESTION NO: 80
Which of the following commands lists all defines variables and functions within Bash?
A.
env
B.
export
C.
env -a
D.
set
E.
echo $ENV
Answer: D
Explanation:
QUESTION NO: 81
What information related to a user account is modified using the chage command?
A.
Default ownership for new files
B.
Group membership
C.
Set of commands available to the user
D.
Password expiry information
E.
prep4sure.com 42
LPI 102-500 Exam
Default permissions for new files
Answer: D
Explanation:
QUESTION NO: 82
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.
core
B.
edquota
C.
quota
D.
ulimit
E.
ktrace
Answer: D
Explanation:
QUESTION NO: 83
How do shadow passwords improve the password security in comparison to standard no-shadow
password?
A.
Regular users do not have access to the password hashes of shadow passwords.
B.
Every shadow password is valid for 45 days and must be changed afterwards.
C.
prep4sure.com 43
LPI 102-500 Exam
The system’s host key is used to encrypt all shadow passwords.
D.
Shadow passwords are always combined with a public key that has to match the user’s private
key.
E.
Shadow passwords are stored in plain text and can be checked for weak passwords.
Answer: A
Explanation:
QUESTION NO: 84
After editing the TCP wrapper configuration to grant specific hosts access to a service, when do
these changes become effective?
A.
The new configuration becomes effective after restarting the respective service.
B.
The new configuration becomes effective at the next system reboot.
C.
The new configuration becomes effective when the last established connection to the service is
closed.
D.
The new configuration becomes effective after restarting the tcpd service.
E.
The new configuration becomes effective immediately for all new connections.
Answer: E
Explanation:
QUESTION NO: 85
What is true regarding public and private SSH keys? (Choose two.)
prep4sure.com 44
LPI 102-500 Exam
A.
For each user account, there is exactly one key pair that can be used to log into that account.
B.
The private key must never be revealed to anyone.
C.
Several different public keys may be generated for the same private key.
D.
To maintain the private key’s confidentiality, the SSH key pair must be created by its owner.
E.
To allow remote logins, the user’s private key must be copied to the remote server.
Answer: B,D
Explanation:
QUESTION NO: 86
Which of the following commands finds all files owned by root that have the SetUID bit set?
A.
find / -user root -perm -4000
B.
find / -user 0 -mode +s
C.
find / -owner root -setuid
D.
find / -owner 0 -permbits 0x100000000
E.
find / --filter uid=1 --filter pers=u+s
Answer: A
Explanation:
prep4sure.com 45
LPI 102-500 Exam
What command is used to add OpenSSH private keys to a running ssh-agent instance? (Specify
the command name only without any path.)
Answer:
ssh-add
Which directory holds configuration files for xinetd services? (Specify the full path to the
directory.)
Answer:
/etc/xinetd.d/
QUESTION NO: 89
Which mechanism does ssh use to interact with the SSH agent?
A.
Connecting to port 2222 which is used by the system-wide SSH agent.
B.
Using the fixed socket .ssh-agent/ipc.
C.
Creating an alias replacing ssh with calls to ssh-agent.
D.
Starting ssh-agent as a child process for each ssh invocation.
E.
Evaluating environment variables such as SSH_AUTH_SOCK.
Answer: E
Explanation:
prep4sure.com 46
LPI 102-500 Exam
Which parameter of the ssh command specifies the location of the private key used for login
attempts? (Specify only the option name without any values or parameters.)
Answer:
ssh-keygen
QUESTION NO: 91
A.
IPv6 no longer supports broadcast addresses.
B.
With IPv6, the TCP port numbers of most services have changed.
C.
IPv4 addresses can be used without any change with IPv6.
D.
IPv6 no longer supports multicast addresses.
E.
For IPv6, UDP and TCP have been replaced by the Rapid Transmission Protocol RTP.
Answer: A
Explanation:
QUESTION NO: 92
A.
NetworkManager opens a new public hotspot with the SSID WIFIoI.
B.
NetworkManager creates an unconfigured new virtual network interface named WIFIoI.
prep4sure.com 47
LPI 102-500 Exam
C.
NetworkManager creates a new wifi connection WIFIoI and activates it.
D.
NetworkManager returns an error in case the connection WIFIoI does not exist.
E.
NetworkManager returns an error because WIFIoI is an invalid wifi device.
Answer: C
Explanation:
QUESTION NO: 93
Which of the commands below might have produced the following output?
A.
dig -t mx www.example.org
B.
dig www.example.org
C.
dig -t ns www.example.org
D.
dig -t a www.example.org
E.
dig -t soa www.example.org
prep4sure.com 48
LPI 102-500 Exam
Answer: B
Explanation:
to activate the previously inactive network interface eth0? (Specify the parameter only without any
command, path or additional options.)
Answer:
up
QUESTION NO: 95
Which of the following states can NetworkManager show regarding the system’s network
connectivity? (Choose two.)
A.
up
B.
portal
C.
full
D.
login-required
E.
firewalled
Answer: B,C
Explanation:
prep4sure.com 49
LPI 102-500 Exam
QUESTION NO: 96
Which of the following are valid host addresses for the subnet 203.0.113.64/28? (Choose two.)
A.
203.0.113.64
B.
203.0.113.78
C.
203.0.113.65
D.
203.0.113.80
E.
203.0.113.81
Answer: B,C
Explanation:
QUESTION NO: 97
Which of the following keywords can be used in the file /etc/resolv/conf? (Choose two.)
A.
substitute
B.
lookup
C.
search
D.
nameserver
E.
method
Answer: C,D
prep4sure.com 50
LPI 102-500 Exam
Explanation:
QUESTION NO: 98
A.
Is sends an ICMP Echo Request to a remote host and waits to receive an ICMP Echo Response
in return.
B.
It sends an ARP request to a remote host and waits to receive an ARP response in return.
C.
It sends a TCP SYN packet to a remote host and waits to receive an TCP ACK response in return.
D.
Is sends a broadcast packet to all hosts on the net and waits to receive, among others, a response
from the target system.
E.
It sends a UDP packet to port 0 of the remote host and waits to receive a UDP error response in
return.
Answer: A
Explanation:
QUESTION NO: 99
Which of the following commands display the number of bytes transmitted and received via the
eth0 network interface? (Choose two.)
A.
route -v via eth0
B.
ip stats show dev eth0
C.
netstat -s -i eth0
prep4sure.com 51
LPI 102-500 Exam
D.
ifconfig eth0
E.
ip -s link show eth0
Answer: C,D
Explanation:
A.
It would be passed to the default router 192.168.178.1 on wlan0.
B.
It would be directly transmitted on the device eth0.
C.
It would be passed to the default router 255.255.255.0 on eth0.
D.
It would be passed to the router 192.168.1.1 on eth0.
E.
It would be directly transmitted on the device wlan0.
Answer: D
Explanation:
prep4sure.com 52
LPI 102-500 Exam
Which of the following commands will delete the default gateway from the system’s IP routing
table? (Choose two.)
A.
ifconfig unset default
B.
route del default
C.
ip route del default
D.
netstat -r default
E.
sysctl ipv4.default_gw=0
Answer: B,C
Explanation:
Answer:
up
What is true about NetworkManager on a Linux system that uses its distribution’s mechanisms to
configure network interfaces? (Choose two.)
A.
NetworkManager reconfigures all network interfaces to use DHCP unless they are specifically
managed by NetworkManager.
B.
prep4sure.com 53
LPI 102-500 Exam
NetworkManager must be explicitly enabled for each interface it should manage.
C.
NetworkManager by default does not change interfaces which are already configured.
D.
NetworkManager disables all interfaces which were not configured by NetworkManager.
E.
NetworkManager can be configured to use the distribution’s network interface configuration.
Answer: B,C
Explanation:
A.
25
B.
80
C.
8080
D.
443
E.
636
Answer: D
Explanation:
Which of the following environment variables can be defined in locale.conf? (Choose two.)
prep4sure.com 54
LPI 102-500 Exam
A.
LC_ALL
B.
LC_USERNAME
C.
LC_UTF8
D.
LC_GEOGRAPHY
E.
LC_TIME
Answer: A,E
Explanation:
Which of the following commands sets the system’s time zone to the Canadian Eastern Time?
A.
localegen -t -f /usr/share/zoneinfo/Canada/Eastern > /etc/locate.tz
B.
tzconf /etc/localtime
C.
sysctl -w clock.tz=’Canada/Eastern’
D.
modprobe tz_ca_est
E.
ln -sf /usr/share/zoneinfo/Canada/Eastern /etc/localtime
Answer: E
Explanation:
prep4sure.com 55
LPI 102-500 Exam
What option to useradd creates a new user’s home directory and provisions it with a set of
standard files? (Specify only the option name without any values or parameters.)
Answer:
-D
How can a specific user be prevented from scheduling tasks with at?
A.
By adding the specific user to the /etc/at.allow file.
B.
By adding the specific user to the [deny] section in the /etc/atd.conf file.
C.
By adding the specific user to the nojobs group.
D.
By adding the specific user to the /etc/at.deny file.
E.
By executing the atd --deny [user] command.
Answer: D
Explanation:
Which file contains the data of the last change of a user’s password?
A.
/etc/gshadow
B.
/etc/passwd
C.
/etc/pwdlog
prep4sure.com 56
LPI 102-500 Exam
D.
/var/log/shadow
E.
/etc/shadow
Answer: E
Explanation:
Which of the following fields can be found in the /etc/group file? (Choose two.)
A.
The home directory of the group.
B.
The list of users that belong to the group.
C.
The name of the group.
D.
The default group ACL.
E.
The description of the group.
Answer: B,C
Explanation:
A.
[Events]
B.
[Timer]
prep4sure.com 57
LPI 102-500 Exam
C.
[cron]
D.
[Schedule]
E.
[Trigger]
Answer: B
Explanation:
A.
getent homes
B.
getent uids
C.
getent passwd
D.
getent users
E.
getent logins
Answer: C
Explanation:
15 14 * * 1-5 /usr/local/bin/example.sh
prep4sure.com 58
LPI 102-500 Exam
When will the script /usr/local/bin/example.sh be executed?
A.
At 14:15 local time, January till May.
B.
At 15:14 local time, 1st to 5th day of month.
C.
At 14:15 local time, February till June.
D.
At 14:15 local time, 1st to 5th day of month.
E.
At 14:15 local time, Monday to Friday
Answer: E
Explanation:
If neither cron.allow nor cron.deny exist in /etc/, which of the following is true?
A.
Without additional configuration, all users may create user specific crontabs.
B.
Without additional configuration, only root may create user specific crontabs.
C.
The cron daemon will refuse to start and report missing files in the system’s logfile.
D.
When a user creates a user specific crontab the system administrator must approve it explicitly.
E.
The default settings of /etc/crond.conf define whether or not user specific crontabs are generally
allowed or not.
Answer: E
Explanation:
prep4sure.com 59
LPI 102-500 Exam
A.
It converts bitmap images from one format to another such as PNG to JPEG.
B.
It verifies that the root directory tree compiles to all conventions from the Filesystem Hierarchy
Standard (FHS).
C.
It converts files from one character set to an other.
D.
It changes the mode of an inode in the ext4 filesystem.
E.
It displays additional meta information from icon files ending in .ico.
Answer: C
Explanation:
Which character in the password field of /etc/passwd is used to indicate that the encrypted
password is stored in /etc/shadow?
A.
*
B.
-
C.
s
D.
#
E.
prep4sure.com 60
LPI 102-500 Exam
x
Answer: E
Explanation:
A.
A standardized high contract graphical theme for desktop applications?
B.
A Linux desktop environment similar to KDE and GNOME.
C.
A legacy display technology superseded by LCD.
D.
A physical representation of characters using small dots.
E.
A standard file format for data exchange, similar to XML.
Answer: D
Explanation:
Which environment variable is used by an X11 client to determine the X Server to connect to?
(Specify only the variable name without any preceding commands or values.)
Answer:
DISPLAY
prep4sure.com 61
LPI 102-500 Exam
Which of the following tasks are handled by a display manager like XDM or KMD? (Choose two.)
A.
Configure additional devices like new monitors or projectors when they are attached.
B.
Start and prepare the desktop environment for the user.
C.
Create an X11 configuration file for the current graphic devices and monitors.
D.
Lock the screen when the user was inactive for a configurable amount of time.
E.
Handle the login of a user.
Answer: B,E
Explanation:
Which of the following protocols is designed to access the video card output of a virtual machine?
A.
KDE
B.
X11
C.
Xfce
D.
SPICE
E.
XDMCP
Answer: D
Explanation:
prep4sure.com 62
LPI 102-500 Exam
prep4sure.com 63