Linux Cheat Sheet 2026
The 30 highest-yield Linux facts, distilled from real exam questions. Print it, save it as a PDF, or study it here — free, no sign-up.
90 questions
90 min time limit
72.00% to pass
- Which nftables command lists all current rules and tables? → nft list ruleset
- What is a Docker bind mount, as opposed to a named volume? → A direct mapping of a specific host directory or file path into the container
- Which command converts an existing linear logical volume to use RAID1 mirroring? → lvconvert --type raid1 -m1 /dev/vg0/lv1
- Which boot parameter disables all CPU mitigations for Spectre/Meltdown vulnerabilities, sometimes used for performance testing? → mitigations=off
- Which tool is used to audit Linux system calls made by a process for security analysis? → strace
- Which tool scans for open ports and services on a target host? → nmap
- A directory has permissions drwxr-x---. Which users can list its contents? → The owner and members of the directory's group
- Which directory contains essential system files such as the kernel and bootloader files? → /boot
- Which command shows which package owns a specific file on a Debian-based system? → dpkg -S /path/to/file
- Which of the following commands is used to determine a system's current IP address? → Ifconfig
- How should Linux professionals handle technical procedures that have been updated or revised? → Review the updates, complete any required training, and implement the revised procedures
- Which file defines the default password aging policy for new user accounts on a Linux system? → /etc/login.defs
- Which command would you use to display a detailed, multi-line report of the attributes for a specific Physical Volume, such as `/dev/sda2`? → `pvdisplay /dev/sda2`
- Which docker run flag makes a container automatically restart unless it is explicitly stopped by the administrator? → --restart=unless-stopped
- A Linux machine does not have Internet connectivity. Which command displays information about the system's network gateway? → Route
- Which command makes iptables rules persistent across reboots on Debian/Ubuntu systems? → iptables-save > /etc/iptables/rules.v4
- An admin wants to capture all failed SSH login attempts from the journal. Which journalctl command filters only for sshd unit logs? → journalctl -u sshd
- Which command recursively changes permissions for all files and directories under /var/www to 755? → chmod -R 755 /var/www
- You want to find all files modified in the last 24 hours under `/var/log`. Which command is correct? → find /var/log -mtime -1
- What is the most effective approach to system administration in the Linux field? → Systematic planning and continuous improvement
- Which `/proc` entry provides the current working directory of a running process with PID 1234? → /proc/1234/cwd
- Which command checks whether auditd is actively capturing events and shows its current running status? → auditctl -s
- What is the primary consideration when implementing changes to networking? → Impact assessment and change management
- Which file contains the mapping between major device numbers and kernel modules/drivers on a Linux system? → /proc/devices
- Which firewalld zone is most restrictive and drops all incoming connections without any notification? → drop
- In the context of YUM/DNF, what is a 'group' install? → Installing a predefined collection of related packages
- How do you rate-limit SSH connections using iptables to prevent brute-force attacks? → iptables -A INPUT -p tcp --dport 22 -m recent --rcheck --seconds 60 --hitcount 4 -j DROP
- What is the most effective approach to package management in the Linux field? → Systematic planning and continuous improvement
- What is the minimum number of days between password changes controlled by in /etc/shadow? → Field 4 — minimum password age
- Which lvcreate option specifies the number of stripes when creating a striped logical volume? → -i
Turn these facts into recall:
What Practice Test Geeks adds beyond an AI chat for Linux
An AI chatbot can quiz you, but it can't reproduce the exam conditions or keep your record. Here you get:
- A timed, full-length Linux mock exam — 90 questions in 90 minutes with a 72% pass mark, modeled on the official exam's question count and time limit, followed by a score report broken down by exam domain.
- A fixed Linux question bank: the same test every attempt, so your score is comparable from one try to the next instead of changing with every regenerated quiz.
- Progress saved on your device: completed tests, scores and missed questions stay in My Progress, so you can retake only what you got wrong.
- Linux flashcards built from the same question bank.
- Free Linux practice tests with the correct answer shown after each question.
Was this helpful?