Study guide · Flashcards and memory notes

Linux Essentials and LPIC-1 Flashcards

40 recall cards for the files and commands the LPI exams keep testing: the shell, permissions, boot targets, packages, users, cron, logs, and SSH.

Essentials 2.0 · LPIC-1 5.04 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 · Linux Essentials

Open source, the shell, archives, and simple scripts.

10 cards
1.1Which part of a Linux system runs in kernel space?

The kernel. Shells, desktop apps, and package managers run in user space and ask the kernel to do privileged work.

1.2What kind of license is the GPL?

A copyleft license. BSD-style licenses are permissive. Creative Commons is used for content, not only for programs.

1.3What does the PATH variable contain?

A colon-separated list of directories the shell searches for commands.

Memory note: The current directory is usually not on PATH, so run a local script as ./script.sh.

1.4Which command opens the manual page for ls?

man ls. ls --help prints a shorter usage summary.

1.5What is the difference between > and >>?

> replaces the file. >> appends. A pipe sends output to the next command instead of to a file.

1.6How do you create a gzip-compressed tar archive of dir/?

tar -czf archive.tar.gz dir/. Extract with tar -xzf archive.tar.gz.

1.7What does a shebang of #!/bin/bash do?

It tells the kernel to run the script with bash. The line must be the first line of the file.

1.8Which file holds password hashes?

/etc/shadow. Only root can read it. /etc/passwd is world-readable and stores the account name, UID, home, and shell.

1.9In chmod math, what do 4, 2, and 1 mean?

Read, write, and execute. 755 is owner read-write-execute, and group and others read-execute.

1.10What is special about /tmp?

It is a sticky directory, usually mode 1777. Anyone can create files, and only the owner can delete their own.

Deck 2 · LPIC-1 exam 101

Boot, packages, processes, and filesystems.

10 cards
2.1Which command lists PCI devices?

lspci. lsusb lists USB devices. lsmod lists loaded kernel modules.

2.2What is the order of a typical boot?

Firmware, boot loader, kernel and initramfs, then PID 1. On current systems PID 1 is systemd.

2.3Which systemd target is multi-user without a graphical login?

multi-user.target. graphical.target starts a display manager. Set the default with systemctl set-default.

2.4Which command rebuilds grub.cfg on GRUB 2?

grub-mkconfig. grub-install writes the boot loader itself. Older GRUB used menu.lst or grub.conf.

2.5What is the difference between apt update and apt install?

apt update refreshes the package index. apt install downloads a package and its dependencies. dpkg -i installs one file and does not fetch dependencies.

2.6Which command shows the shared libraries a binary needs?

ldd. ldconfig rebuilds the library cache from /etc/ld.so.conf.

2.7What is the default nice value, and which end is higher priority?

The default is 0. -20 is the highest priority and 19 is the lowest. Only root can raise priority.

2.8Why prefer a UUID in /etc/fstab?

A device name such as /dev/sda1 can change. The UUID stays with the filesystem. Look it up with blkid.

2.9When is it safe to run fsck?

When the filesystem is unmounted. Checking a mounted filesystem can corrupt it. The same rule applies to xfs_repair.

2.10What is the difference between a hard link and a symlink?

A hard link is another name for the same inode and cannot cross filesystems. ln -s stores a path and can point at a missing target.

Deck 3 · Users, jobs, and services

Accounts, cron, time, logs, and printing. These are exam 102 topics.

10 cards
3.1Which command edits a user crontab?

crontab -e. crontab -l lists it. The five fields are minute, hour, day of month, month, and day of week.

3.2What does at do that cron does not?

at runs a command once. Cron repeats on a schedule. atq lists pending at jobs.

3.3Which variable overrides every other locale setting?

LC_ALL. LANG is the default when a specific LC_ variable is unset.

3.4Which command shows whether NTP sync is enabled on systemd?

timedatectl. hwclock reads the hardware clock. Zone data lives under /usr/share/zoneinfo.

3.5Which command shows the journal for one unit?

journalctl -u name. rsyslog text logs are files such as /var/log/syslog or /var/log/messages.

3.6What does logger do?

It sends a message to the system log so you can test a facility and priority without waiting for a real event.

3.7Which command rebuilds the alias database after you edit /etc/aliases?

newaliases. mailq lists the outgoing mail queue. ~/.forward redirects one user’s mail.

3.8Which commands submit and list print jobs?

lp or lpr submits a job. lpstat or lpq lists the queue. CUPS configuration is under /etc/cups.

3.9What does usermod -L do?

It locks the account password. userdel removes the account. chage changes password aging.

3.10What is copied from /etc/skel?

The starter files for a new home directory, such as shell startup files, when useradd creates an account with a home.

Deck 4 · Networking and security

Addresses, DNS, sudo, TCP wrappers, SSH, and GnuPG.

10 cards
4.1Which command shows addresses on each interface?

ip addr. ip route shows the routing table. ip link shows whether the interface is up.

4.2Which file lists the DNS servers a resolver should query?

/etc/resolv.conf. /etc/hosts is a local name list. The order is set in /etc/nsswitch.conf.

4.3What is the difference between ping and host?

ping tests whether an address answers ICMP. host looks up a name in DNS. A failed ping does not prove that DNS is broken.

4.4Why edit sudoers with visudo?

visudo checks the syntax before installing the file, so a typo is less likely to lock out every administrator.

4.5Which files implement TCP wrappers?

/etc/hosts.allow and /etc/hosts.deny. They filter services built with libwrap. They are not a firewall.

4.6Where does a user’s SSH public key go so they can log in?

In ~/.ssh/authorized_keys on the server. The private key stays on the client. ssh-keygen creates the pair.

4.7What must you replace after cloning a Linux guest?

SSH host keys and the D-Bus machine id. Otherwise two machines present the same identity.

4.8Which gpg operations does LPIC-1 expect?

Encrypt, decrypt, sign, and verify, plus the idea of revoking a key. Key material lives under ~/.gnupg.

4.9What does the DISPLAY variable name?

The X server and screen an application should draw on, such as :0. Wayland is awareness beside X11, not a replacement you must configure in detail.

4.10What does /etc/nologin do when the file exists?

It blocks logins for ordinary users. Root can still sign in on the console for maintenance.

Continue the LPI study path

Test what you have learned with a timed practice exam.

LPI hub →
Available

Overview

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

Available

Core Notes

Reference notes for the shell, packages, boot, filesystems, users, logs, networking, and SSH.

Available · You are here

Flashcards & Memory Notes

40 recall cards in four decks, plus memory notes for permissions, boot, cron, and SSH.

Available

Practice Exams

200 original questions with custom exams, explanations, and an unofficial 200–800 score.

Related Tools

Useful companions while you study.

All study topics →