CompTIA Linux+ — System Management and Scripting flashcards
10 of 76 cards free to study here · 3 topics · the whole deck is built into Willys
Day-to-day Linux administration for Linux+: the filesystem hierarchy, boot and systemd, packages, partitions, LVM and fstab, users, groups and special permission bits, processes, signals and timers, network commands, Bash scripting, Git, containers and infrastructure as code.
Learn deck · part of CompTIA Linux+ · written against: Current Linux+ exam objectives (topics common to XK0-005 and its successor). Updated 2026-10-10.
Study the free sample
10 cards from the deck as they are. Flip, rate yourself, filter by topic; your progress stays in this browser.
Tap the card or press Space to flip
The 10 sample cards as a list
-
Which FHS directory holds variable data such as logs, mail spools and package caches?/var — data that changes during normal operation: logs in /var/log, caches in /var/cache, spools in /var/spool.System Management › Filesystem Hierarchy
-
By FHS convention, where should locally built software that the package manager does not track be installed?Under /usr/local (or /opt for self-contained add-on packages), so it never collides with files the distribution's packages own under /usr.System Management › Filesystem Hierarchy
-
What are /proc and /sys, and why do their files take no space on disk?They are virtual filesystems generated by the kernel in memory: /proc exposes process and kernel information, /sys exposes devices and drivers. Their contents are produced when read, so nothing is stored on disk.System Management › Filesystem Hierarchy
-
/tmp versus /var/tmp — how long are files in each expected to survive?/tmp may be wiped at every reboot and is often a RAM-backed tmpfs; /var/tmp is for temporary files that must persist across reboots.System Management › Filesystem Hierarchy
-
What is stored in /etc/shadow that is not in /etc/passwd, and why are the two files separate?/etc/shadow holds password hashes and ageing data and is readable only by root. /etc/passwd must stay world-readable so tools can map UIDs to names, so the hashes were moved out of it.Security › Users and Groups
-
Which command adds the existing user alice to the docker group without removing her other supplementary groups?Security › Users and Groups
usermod -aG docker alice— -a appends;-Gon its own replaces the whole supplementary group list. She must log in again for the change to apply. -
Which commands force a user to choose a new password at next login and show their password-ageing settings?Security › Users and Groups
chage -d 0 alicemarks the password as expired so it must be changed at next login;chage -l alicelists the ageing details. -
What does a first line of
#!/bin/bashdo in a script?The shebang tells the kernel which interpreter runs the file when it is executed directly asScripting Containers and Automation › Bash Scripting./script.sh; the file also needs execute permission. -
How does a script learn whether the previous command succeeded?Every command returns an exit status — 0 means success, anything else failure — held in the special parameter ? (read with a leading dollar sign).Scripting Containers and Automation › Bash Scripting
if command; thentests it directly. -
What is the difference between
cmd1 && cmd2andcmd1 || cmd2?&& runs cmd2 only if cmd1 succeeds; || runs cmd2 only if cmd1 fails.Scripting Containers and Automation › Bash Scripting
Example:mkdir /backup && cp app.conf /backup
Unlock the whole deck
You are studying a free 10-card sample. All 76 cards of CompTIA Linux+ — System Management and Scripting, the other 2 CompTIA Linux+ decks, and spaced-repetition scheduling are built into Willys. 14-day free trial, then $14.99 a year.
In Willys, tap Exam Library at the top of your Decks (or Browse Exam Library… under the + button), find the exam on its shelf or by search, tick it and tap Add.
More CompTIA Linux+ decks
← All CompTIA Linux+ decks, with the study guide and topic outline.
About these cards
Review status: Second-reader reviewed, with corrections applied.
Checked against:
- CompTIA Linux+ exam objectives — topic outline only; no text copied. Tags follow the four XK0-005 domains; as of October 2026 the current exam is XK0-006 (launched 2025-07-15), and XK0-005 retired on 2026-01-13.
These are independent study notes written for Willys. They are not official exam material, may contain mistakes, and are no substitute for your course, your teacher or the exam owner's own publications. Found an error? Tell us — corrections ship as a new version of the deck.
CompTIA® and Linux+® are registered trademarks of CompTIA, Inc. Linux® is the registered trademark of Linus Torvalds. This product is not affiliated with or endorsed by CompTIA.
Use of these pages is covered by our Terms of Use.