Welcome to awslagi.com – Sharing AWS, Anthropic, Google Cloud, Microsoft Azure IT Exams. It's free for all!

LPI Level 1

Achieve the modern LPIC-1 standard by mastering the latest administrative tasks for V5.0 systems.

4.8★★★★★(273 ratings)
17,771 studentsIntermediate
The 102-500 exam completes your LPIC-1 (Version 5.0) certification with a focus on modern administrative automation and security. You will learn updated shell scripting methods, advanced networking protocols, and the latest security hardening techniques for enterprise-grade Linux servers. Reaching the LPIC-1 V5.0 status proves you are an elite junior administrator. This certification is a powerful indicator of your technical skills, qualifying you for senior support and systems engineering roles across a variety of tech sectors.

What you'll learn

  • Modern shell scripting (bash)
  • Network configuration (IPv4/IPv6)
  • System security hardening
  • Logging and time synchronization
  • User and group management at scale

102-500

Lectures2
Questions69
Duration30 week
Students17,771

$20.00

Full Free Question Bank (69 Questions)

LPI Level 1 (102-500) Practice Questions & Verified Answers

Click any option to test your knowledge, or reveal the verified answer and detailed explanation below each question.

Jump to Section:
Question #1Part 1

Which of the following is a valid IPv6 address?

A2001:db8:0g21::1
B2001::db8:4581::1
C2001:db8:3241::1
D2001%db8%9990%%1
E2001.db8.819f..1
Question #2Part 1

Which if the following tools, used for DNS debugging, reports not only the response from the name sever but also details about the query?

Adnsq
Bhostname
Cdig
Ddnslookup
Ezoneinfo
Question #3Part 1

Which of the following statements is valid in the file /etc/nsswitch.conf?

Amulti on
B192.168.168.4 dns-server
Cnamespaces: net mount procs
Dinclude /etc/nsswitch.d/
Ehosts: files dns
Question #4Part 1Select 3

Which of the following connection types, as seen in nmcli connection show, may exist in NetworkManager? (Choose three.)

Atcp
Bethernet
Cwifi
Dipv6
Ebridge
Question #5Part 1

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?

AThe local routing information may be corrupted and must be re-validated using a routing
BOne of the routers in the routing table is not available which causes the automatic router
CThere may accidentally be more than one default router in which case a default router
DThe Linux Kernel Routing Daemon (LKRD) is not running and should be started using its init
EDNS resolution may not be working as route by default tries to resolve names of routers and
Question #6Part 1

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?

AThe local routing information may be corrupted and must be re-validated using a routing
BOne of the routers in the routing table is not available which causes the automatic router
CThere may accidentally be more than one default router in which case a default router
DThe Linux Kernel Routing Daemon (LKRD) is not running and should be started using its init
EDNS resolution may not be working as route by default tries to resolve names of routers and
Question #7Part 1

What is true about the Hop Limit field in the IPv6 header?

AThe field is not changed during the transport of a package.
BThe field is transmitted within a hop-by-hop extension header.
CEach router forwarding the packet increases the field's value.
DEach router forwarding the packet decreases the field's value.
EFor multicast packages, the field's value is always 1.
Question #8Part 1Select 2

Which of the following nmcli subcommands exist? (Choose two.)

Anmcli ethernet
Bnmcli device
Cnmcli wifi
Dnmcli address
Enmcli connection
Question #9Part 1

Which of the following changes may occur as a consequence of using the command ip? (Choose three.)

ANetwork interfaces may become active or inactive.
BNew name servers may be added to the resolver configuration.
CThe system's host name may change.
DIP addresses may change.
EThe routing table may change.
Question #10Part 1

How many IP addresses can be used for unique hosts inside the IPv4 subnet 192.168.2.128/26?

A6
B14
C30
D62
E126
Question #11Part 1Select 3

Which of the following IPv4 networks are reserved by IANA for private address assignment and private routing? (Choose three.)

A10.0.0.0/8
B127.0.0.0/8
C169.255.0.0/16
D172.16.0.0/12
E192.168.0.0/16
Question #12Part 1Select 2

Which of the following commands configure network interfaces based on the system's existing distribution-specific configuration files? (Choose two.)

Aifconf
Bifdown
Cifpause
Difstart
Eifup
Question #13Part 1

Which of the following statements is true if the UID of a regular user is identical to the GID of a group?

AUID have precedence over GIDs, therefore the user is available while the group doesn't.
BThe user as well as the group are not available to avoid ambiguity due to the ID conflict.
CUIDs and GIDs are independent of each other, therefore the user as well as the group are
DThe user is the only member of the group, even if the group configuration contains other
EGIDs have precedence over UIDs, therefore the group is available while the user isn't.
Question #14Part 1

Which of the following information is stored in /etc/shadow for each user?

AThe timestamp of the user's last login
BThe user's private SSH keys
CThe hashed password of the user
DThe numerical user ID (UID)
EThe path to the user's home directory
Question #15Part 1

Which of the following commands shows all active systemd timers?

Asystemctl-timer show
Btimectl list
Csystemctl ג €"t
Dsystemctl list-timers
Etimeq
Question #16Part 1Select 2

Which of the following tasks can the date command accomplish? (Choose two.)

ASet the system's date and time.
BSet the system's date but not the time.
CCalculate the time span between two dates.
DPrint a calendar for a month or a year.
EDisplay time in a specific format.
Question #17Part 1Select 2

What can be specified with useradd? (Choose two.)

ACommands the user can run using sudo.
BThe absolute path to the user's home directory.
CWhich printers are available for the new user.
DThe SSH keys used to login to the new account.
EThe numeric user ID (UID) of the user.
Question #18Part 1

What is true about the file /etc/localtime?

AIt is a plain text file containing a string such as Europe/Berlin
BIt is created and maintained by the NTP service based on the location of the system's IP
CIt is a symlink to /sys/device/clock/ltime and always contains the current local time.
DAfter changing this file, newtzconfig has to be run to make the changes effective.
EIt is either a symlink to or a copy of a timezone information file such as
Question #19Part 1

Which of the following statements is true regarding systemd timer units?

ATimer units can only be defined within a service unit's file.
BThe command executed by the timer is specified in the timer unit's [Cmd] section.
CA dedicated system service, systemd-cron, handles the execution of timer units.
DTimer units only exist in the system scope and are not available for users.
EEach systemd timer unit controls a specific systemd service unit.
Question #20Part 1Select 2

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.)

AYear
BMinute
CUsername
DEffective group ID
ECommand
Question #21Part 1

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)?

Aexport LANGUAGE="pt"
Bexport LC_MESSAGES="pt"
Cexport UI_MESSAGES="pt"
Dexport MESSAGE="pt"
Eexport ALL_MESSAGES="pt"
Question #22Part 1

Which of the following files assigns a user to its primary group?

A/etc/pgroup
B/etc/shadow
C/etc/passwd
D/etc/group
E/etc/gshadow
Question #23Part 1

Which of the following steps prevents a user from obtaining an interactive login session?

ASetting the UID for the user to 0.
BRunning the command chsh -s /bin/false with the user name.
CRemoving the user from the group staff.
DAdding the user to /etc/noaccess.
ECreating a .nologin file in the user's home directory.
Question #24Part 1

Which of the following statements about systemd-journald are true? (Choose three.)

AIt is incompatible with syslog and cannot be installed on a system using regular syslog.
BIt only processes messages of systemd and not messages of any other tools.
CIt can pass log messages to syslog for further processing.
DIt maintains metadata such as _UID or _PID for each message.
EIt supports syslog facilities such as kern, user, and auth.
Question #25Part 1

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?

Aiburst
Bquickstart
Cfast
Dfsync
Eflood
Question #26Part 1

Which of the following commands is used to rotate, compress, and mail system logs?

Alogrotate
Bstriplog
Csyslogd --rotate
Drotatelog
Elogger
Question #27Part 1

Why is the correct configuration of a system's time zone important?

ABecause the timezone is included in checksum calculations and timezone changes invalidate
BBecause the time zone is saved as part of the modification times of files and cannot be
CBecause the environment variables LANG and LC_MESSAGES are, by default, set
DBecause NTP chooses servers nearby based on the configured time zone.
EBecause the conversion of Unix timestamps to local time relies on the time zone
Question #28Part 1

Which of the following commands lists all queued print jobs?

Alpd
Blpr
Clp
Dlsq
Elpq
Question #29Part 1

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?

Amail.* /var/log/maillog mail,crit @logger.example.org
Bmail.* /var/log/maillog mail.crit syslog://logger.example.org
Cmail /var/log/maillog mail.crit @logger.example.org
Dmail.* /var/log/maillog mail.crit @logger.example.org
Email * /var/log/maillog mail crit @logger.example.org
Question #30Part 1

Which of the following protocols is related to the term open relay?

ASMTP
BPOP3
CNTP
DIMAP
ELDAP
Question #31Part 1

Which of the following protocols is related to the term open relay?

ASMTP
BPOP3
CNTP
DIMAP
ELDAP
Question #32Part 1

Which of the following commands displays all environment and shell variables?

Agetargs
Blsenv
Cls
Denv
Elsshell
Question #33Part 1Select 2

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
Question #34Part 1

What information is provided by the echo $$ command?

AThe process ID of the current shell.
BThe process ID for the following command.
CThe process ID of the last command executed.
DThe process ID of the last command which has been placed in the background.
EThe process ID of the echo command.
Question #35Part 1

What information is provided by the echo $$ command?

AThe process ID of the current shell.
BThe process ID for the following command.
CThe process ID of the last command executed.
DThe process ID of the last command which has been placed in the background.
EThe process ID of the echo command.
Question #36Part 1

Which command makes the shell variable named VARIABLE visible to subshells?

Aexport $VARIABLE
Benv VARIABLE
Cset $VARIABLE
Dset VARIABLE
Eexport VARIABLE
Question #37Part 1

What output is produced by the following command sequence? echo '1 2 3 4 5 6' | while read a b c; do echo result $c $b $a; done

Aresult: 6 5 4
Bresult: 1 2 3 4 5 6
Cresult: 3 4 5 6 2 1
Dresult: 6 5 4 3 2 1
Eresult: 3 2 1
Question #38Part 1

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
Question #39Part 1

What output does the command seq 10 produce?

AA continuous stream of numbers increasing in increments of 10 until the command is
BIt creates no output because a second parameter is missing.
CThe number 0 through 9 with one number per line.
DThe number 10 to standard output.
EThe numbers 1 through 10 with one number per line.
Question #40Part 1

Which of the following commands can be used to limit the amount of memory a user may use?

Aumask
Busermod
Cpasswd
Dulimit
Echage
Question #41Part 1

What is a purpose of an SSH host key?

AIt must be sent by any SSH client in addition to a user key in order to identify the client's host.
BIt is root key by which all user SSH keys must be signed.
CIt provides the server's identity information to connecting SSH clients.
DIt authenticates any user that logs into a remote machine from the key's host.
EIt is used by system services like cron, syslog or a backup job to automatically connect to
Question #42Part 1

What is the purpose of TCP wrapper?

AManage and adjust bandwidth used by TCP services.
BBind a network service to a TCP port.
CEncapsulate TCP messages in IP packets.
DAdd SSL support to plain text TCP services.
ELimit access to a network service.
Question #43Part 1Select 3

Given the following excerpt of the sudo configuration: jane ANY=NOPASSWD: /bin/kill, /bin/id, PASSWD: /sbin/fdisk Which of the following statements are true? (Choose three.)

AJane can run /bin/id only after specifying her password.
BJane can run /sbin/fdisk after specifying root's password.
CJane can run /sbin/fdisk after specifying her password.
DJane can run /bin/kill without specifying a password.
EJane can run /bin/id without specifying her password.
Question #44Part 1

Which configuration file contains the default options for SSH clients?

A/etc/ssh/sshd_config
B/etc/ssh/ssh
C/etc/ssh/ssh_config
D/etc/ssh/client
E/etc/ssh/ssh_client
Question #45Part 1

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
Question #46Part 1

Which of the following commands can identify the PID od a process which opened a TCP port?

Aptrace
Bstrace
Cdebug
Dlsof
Enessus
Question #47Part 1

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?

Asshd
Bssh-keyring
Cssh-keygen
Dssh-pki
Essh-agent
Question #48Part 1

On a machine running several X servers, how do programs identify the different instances of the X11 server?

ABy a fixed UUID that is defined in the X11 configuration file.
BBy a display name like: 1.
CBy the name of the user that runs the X server like x11:bob.
DBy a device name like /dev/X11/xservers/1.
EBy a unique IPv6 address from the fe80::/64 subnet.
Question #49Part 1

What is the purpose of a screen reader?

AIt manages virtual keyboards on touch screen displays.
BIt reads the parameters of the attached monitors and creates an appropriate X11
CIt displays lines and markers to help people use speed reading techniques.
DIt manages and displays files that contain e-books.
EIt reads displayed text to accommodate the needs of blind or visually impaired people.
Question #50Part 1

The X11 configuration file xorg.conf is grouped into section. How is the content of the section SectionName represented?

AIt is placed in curly brackets as in Section SectionName {...}.
BIt is placed between the tags
CIt is placed between a line containing Section "SectionName" and a line containing
DIt is placed after the row [SectionName].
EIt is placed after an initial unindented Section "SectionName" and must be indented by
Question #51Part 1Select 2

Which of the following features are provided by SPICE? (Choose two.)

AConnecting local USB devices to remote applications.
BAccessing graphical applications on a remote host.
CReplacing Xorg as local X11 server.
DDownloading and locally installing applications from a remote machine.
EUploading and running a binary program on a remote machine.
Question #52Part 1

What is the systemd journal stored?

A/var/jlog/ and /var/jlogd/
B/proc/log/ and /proc/klog/
C/run/log/journal/ or /var/log/journal/
D/var/log/syslog.bin or /var/log/syslog.jrn
E/etc/systemd/journal/ or /usr/lib/systemd/journal/
Question #53Part 1

What is the systemd journal stored?

A/var/jlog/ and /var/jlogd/
B/proc/log/ and /proc/klog/
C/run/log/journal/ or /var/log/journal/
D/var/log/syslog.bin or /var/log/syslog.jrn
E/etc/systemd/journal/ or /usr/lib/systemd/journal/
Question #54Part 1

Which of the following is true regarding the command sendmail?

AWith any MTA, the sendmail command must be run periodically by the cron daemon.
BWhen using systemd, sendmail is an alias to relayctl.
CThe sendmail command prints the MTA's queue history of which mails have been sent
DIt is only available when the sendmail MTA is installed.
EAll common MTAs, including Postfix and Exim, provide a sendmail command.
Question #55Part 1

Which file inside the CUPS configuration directory contains the settings of the printers?

Acups-devices.conf
Bsnmp.conf
Cprinters.conf
Dprintcap.conf
Ecupsd.conf
Question #56Part 1Select 2

Which of the following are syslog facilities? (Choose two.)

Alocal5
Baccounting
Cmail
Dpostmaster
Eremote
Question #57Part 1Select 2

Which of the following are syslog facilities? (Choose two.)

Alocal5
Baccounting
Cmail
Dpostmaster
Eremote
Question #58Part 1Select 2

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=
Question #59Part 1

What is true regarding the file ~/.forward?

AWhen configured correctly ~/.forward can be used to forward each incoming mail to one or
BAfter editing ~/.forward the user must run newaliases to make the mail server aware of the
CUsing ~/.forward, root may configure any email address whereas all other users may
DAs ~/.forward is owned by the MTA and not writable by the user, it must be edited using the
EBy default, only ~/.forward files of users in the group mailq are processed while all other
Question #60Part 1Select 2

Which of the following commands display a list of jobs in the print queue? (Choose two.)

Acups --list
Blprm -l
Clpstat
Dlpr -q
Elpq
Question #61Part 2

On a system using systemd-journald, which of the following commands add the message Howdy to the system log? (Choose two.)

Aappend Howdy
Blogger Howdy
Csystemd-cat echo Howdy
Decho Howdy > /dev/journal
Ejournalctl add Howdy
Question #62Part 2Select 2

Which of the following options in the chrony configuration file define remote time sources? (Choose two.)

Asource
Bclock
Cremote
Dpool
Eserver
Question #63Part 2

Which of the following situations is observed and corrected by an NTP client?

AThe skew in time between the system clock and the computer's hardware clock.
BThe physical location and the timezone configuration.
CChanges in the time zone of the current computer's location.
DAdjustment needed to support Daylight Saving Time.
EThe skew in time between the system clock and the reference clock.
Question #64Part 2

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?

Aset ls='ls -l'
Balias ls='ls -l'
Calias --force ls='ls -l'
Dalias --update ls ls='ls -l'
Erealias ls='ls -l'
Question #65Part 2

Which of the following commands puts the output of the command date into the shell variable mydate?

Amydate="date"
Bmydate="exec date"
Cmydate="$((date))"
Dmydate="$(date)"
Emydate="${date}"
Question #66Part 2

What information is shown by the echo $? command?

AThe process ID of the echo command.
BThe exit value of the command executed immediately before echo.
CThe process ID which will be used for the next command.
DThe exit value of the echo command.
EThe process ID of the current shell.
Question #67Part 2

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
Question #68Part 2

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
Question #69Part 2

What is true about the file .profile in a user's home directory?

AIt must be executable.
BIt must call the binary of the login shell.
CIt must use a valid shell script syntax.
DIt must start with a shebang.
EIt must be readable for its owner only.

📢 Unlock Full Access to Success!

"The content displayed here is a promotional preview and contains only 50% of the actual exam database. To access the complete set of updated questions, please upgrade to the Full Version."

👉 Click the button and follow the instructions to secure your full access immediately!