Study guide · Flashcards and memory notes

LPIC-2 Flashcards

40 recall cards for the files and commands version 4.5 keeps testing: capacity, the kernel, RAID and LVM, BIND, Apache, Samba, mail, and SSH.

Version 4.5 · 201-450 and 202-4504 decks · 40 cardsNo sign-up required

How to use these cards: Say the answer out loud before you flip the card, and mark it honestly. Revisit the cards you missed tomorrow rather than rereading them right away. Progress is kept only while this page is open. For the full explanations, see the core notes.

Study mode

Choose a deck, flip each card, and mark what you already know.

All flashcards

Select a question to reveal its answer.

Deck 1 · Host, kernel, and boot

Capacity, modules, and recovery. These are exam 201 topics.

10 cards
1.1What does a high vmstat wa mean when user and system CPU are idle?

Processes are waiting on disk I/O. Load can be high without a busy CPU.

1.2Which command records resource counters so you can graph yesterday?

sar. It reads data collected by sysstat. top is a live view.

1.3Which kernel image is the usual large compressed boot image?

bzImage. zImage is the older, smaller format. The initramfs is a separate archive.

1.4Why use modprobe instead of insmod?

modprobe loads dependencies from modules.dep. insmod loads one object file and does not.

1.5What does DKMS do when a new kernel is installed?

It rebuilds registered out-of-tree modules so they match that kernel.

1.6Which systemd target is the smaller recovery shell?

emergency.target. rescue.target mounts local filesystems and starts a few early services.

Memory note: If the fault is a mount, start with emergency and mount by hand.

1.7Which command writes GRUB 2 itself, and which regenerates grub.cfg?

grub-install writes the boot loader. grub-mkconfig regenerates the menu.

1.8Which file is the BIOS PXE boot loader on the version 4.5 list?

pxelinux.0, with configuration under pxelinux.cfg/. shim.efi and grubx64.efi are the UEFI files.

1.9Where do local systemd unit overrides go?

/etc/systemd/system. Those files beat the vendor units in /usr/lib/systemd. systemd-delta shows the difference.

1.10What is an initramfs for when root is on LVM?

It supplies the tools that assemble LVM, RAID, or LUKS before the real root is mounted.

Deck 2 · Storage, network, and backups

Filesystems, RAID, LVM, routes, and notices. Still exam 201.

10 cards
2.1Which command prints the UUID you put in fstab?

blkid. A /dev/sdX name can change. The UUID stays with the filesystem.

2.2How many disks does RAID 5 need, and how many failures does it survive?

At least three disks, and it survives one failure. RAID 1 is a mirror. RAID 0 has no redundancy.

2.3What is the order for a new LVM logical volume?

pvcreate, then vgcreate, then lvcreate. Format the logical volume after that.

2.4You ran lvextend and ext4 is still the old size. What is missing?

resize2fs, or lvextend -r. The volume and the filesystem are resized separately. XFS uses xfs_growfs and cannot shrink.

2.5Which file shows whether a software RAID array is degraded?

/proc/mdstat. mdadm --detail describes one array.

2.6Which file points an AutoFS directory at its map?

/etc/auto.master. The map file, such as /etc/auto.misc, lists the keys.

2.7The local subnet works and every other network fails. What is missing?

A default route. Check ip route before you rebuild the kernel.

Memory note: If the IP works and the name does not, the fault is DNS, not the route.

2.8What do hosts.allow and hosts.deny control?

TCP wrappers for libwrap services. They are not the iptables filter.

2.9Which tape device does not rewind when it is closed?

/dev/nst0. /dev/st0 rewinds. mt controls the drive.

2.10Which file is shown before a local login, and which after?

/etc/issue before login, /etc/motd after. wall writes to people who are already logged in.

Deck 3 · DNS, HTTP, and file sharing

BIND, Apache, nginx, Squid, Samba, and NFS. These are exam 202 topics.

10 cards
3.1Which command checks named.conf, and which checks one zone file?

named-checkconf checks the configuration. named-checkzone checks a zone file. rndc reload applies a change.

3.2What do you raise so a secondary transfers an edited zone?

The SOA serial. Then reload. A secondary that still has the old serial keeps the old data.

3.3What is the Apache 2.4 way to allow everyone into a directory?

Require all granted. Order and Allow need mod_access_compat.

3.4What does SNI let one HTTPS address do?

Present a different certificate for each host name on the same IP and port.

3.5Which service is a caching forward proxy, and which directive reverse-proxies in nginx?

Squid is the forward cache. nginx proxy_pass is a reverse proxy in front of an application.

3.6Which Samba security mode is an Active Directory member?

security = ads. A standalone server uses security = user. Check the file with testparm.

3.7What does NFS root_squash do?

It maps root on the client to an unprivileged user. no_root_squash keeps client root as root.

3.8Which command reloads /etc/exports?

exportfs -ra. showmount -e lists what a server is exporting.

3.9Where does version 4.5 expect OpenLDAP server configuration?

In cn=config, edited as LDIF. File-based slapd.conf is not the configuration this version tests.

3.10Which dhcpd.conf option is the default gateway?

option routers. range is the address pool. option domain-name-servers is DNS.

Deck 4 · Mail, SSH, and the firewall

Postfix, Dovecot, forwarding, and OpenVPN.

10 cards
4.1What is the difference between mydestination and relayhost?

mydestination is local delivery. relayhost is the smarthost for mail that is not local.

4.2Which program accepts SMTP, and which typically serves IMAP?

Postfix accepts SMTP. Dovecot serves IMAP or POP. Courier is awareness on version 4.5.

4.3Which filter language does version 4.5 expect, with procmail at awareness only?

Sieve. It filters mail at delivery. newaliases rebuilds /etc/aliases.

4.4A PAM requisite module fails. What happens next?

PAM returns failure immediately. required records the failure and still runs later modules.

4.5Which nat rule rewrites a private source as it leaves for the Internet?

iptables -t nat -A POSTROUTING -o uplink -j MASQUERADE. ip_forward must also be on. IPv6 uses ip6tables.

4.6What does ssh -L 8080:127.0.0.1:80 user@bastion listen on?

Port 8080 on the SSH client. The connection is forwarded through bastion to port 80 on bastion’s loopback. -R listens on the server instead.

4.7PasswordAuthentication is no, and a key login still works. Is that a fault?

No. Turning off passwords does not turn off public-key authentication.

4.8When does OpenVPN use tun, and when does it use tap?

tun is a routed IP tunnel. tap is a virtual Ethernet segment. Both ends must agree.

4.9Which find test lists SUID programs?

find / -perm -4000. 2000 is SGID. 001 is other-execute.

4.10Which IPv6 prefix is unique local, and which is link-local?

fc00::/7 is unique local. fe80::/10 is link-local.

Memory note: Forwarding alone does not make private addresses reachable from the Internet. NAT rewrites the source.

Continue the LPIC-2 study path

Test what you have learned with a timed practice exam.

LPIC-2 hub →
Available

Overview

Exam format, the 500 passing score, topic weights, and a study plan.

Available

Core Notes

Reference notes for the kernel, storage, DNS, Apache, Samba, mail, and the host firewall.

Available · You are here

Flashcards & Memory Notes

40 recall cards in four decks, plus memory notes for RAID, LVM, BIND, and SSH.

Available

Practice Exams

400 original questions with custom exams, explanations, and a practice percentage.

Official exam sources

Use the LPIC-2 version 4.5 objectives to check every command, file, directive, and awareness term in these cards. The current LPIC-2 page confirms exams 201-450 and 202-450, the active LPIC-1 prerequisite, and the two-exam format. These cards are independent recall prompts, not official exam items.

CompTIA Server+

Compare vendor-neutral server hardware, storage, recovery, and troubleshooting skills.

CompTIA Network+

Reinforce routing, addressing, ports, and troubleshooting used throughout LPIC-2.

Apply concepts in the Scenario Workshop →