Practice area
LFCS Storage
Identify disk, inode, mount, backup, and restore evidence before removing or changing data.
Linux One Liners is an independent study and practice resource. It is not affiliated with, endorsed by, or approved by LPI, The Linux Foundation, CompTIA, or any certification provider. This site does not provide exam dumps or real exam questions.
Source status
Source status: Linux Foundation LFCS page verified June 30, 2026. LFCS is an online, proctored, performance-based command-line exam.
This page paraphrases study areas into command practice. It does not copy official objective text wholesale and is not an exam dump.
Plain-English goal
Practice area: storage. Exam/domain: LFCS.
read the situation
Command, output, and next step
Command anatomy
df
df- summarize filesystem pressure
-h- human-readable byte usage
target- scope the question to a mount point
Annotated output
Filesystem Size Used Avail Use% Mounted on
/dev/nvme0n1p2 40G 39G 220M 100% /
/dev/nvme0n1p3 200G 82G 118G 42% /home
4.0K /var/tmp
180M /var/log
2.8G /var/lib
What to notice
- filesystem
- the device or volume under pressure
- mounted on
- the scope of the problem
- Use%
- byte pressure
- Avail
- how much byte capacity remains
- /var child
- which top-level directory is growing inside the likely hot path
Safe vs unsafe move
Common wrong move
Cleaning /home when / is the full filesystem.
Next safe command
sudo find /var -xdev -type f -size +100M -printf '%s %p\n' 2>/dev/null | sort -nr | head
Troubleshooting ladder
- Name the symptom.
- Inspect read-only state.
- Find the owner, service, file, device, mount, or route.
- Read the decisive output field.
- Choose the next narrow command.
- Avoid broad or destructive changes.
- Make the smallest justified change if required.
- Verify and record what changed.
How to get help
- Know the commandUse
command --help, thenman commandfor the full reference. - Know the conceptUse
apropos keywordorman -k keywordto discover command names. - Maybe a shell builtinUse
type command,command -V command, thenhelp command. - Service behaviorUse
systemctl status serviceandjournalctl -u servicebefore restarting. - Package ownershipUse
dpkg -S,rpm -qf, or the distro package tool for the installed file.
performance practice
Timed task cards
LFCS-style practice should reward evidence, small changes, verification, and rollback thinking.
Timed task
Read-only proof task
Task: Prove the current storage state without changing it.
Time: 8 minutes
Allowed first commands: df, du, find, rsync
Pass: You identify the decisive field and can explain normal versus abnormal output.
Fail: You restart, delete, chmod, or edit before proving the state.
Timed task
Smallest safe change task
Task: Name the smallest justified change you would make after the evidence is clear.
Time: 10 minutes
Allowed first commands: status/log/readout command first, change command second
Pass: The change is scoped, reversible, and tied to one output field.
Fail: The change is broad, unverified, or unrelated to the evidence.
Timed task
Verify and rollback task
Task: State the verification command and rollback note for the task.
Time: 6 minutes
Allowed first commands: status, log, route, mount, permission, or package verification
Pass: You can show the before/after signal and explain rollback.
Fail: You cannot prove the task worked or cannot undo the change.
command families
Commands to practice
dfdufindrsynctar
Related command pages
Related drills
Flashcards
timed task
In a storage incident, what must you prove before deleting files?
Prove the affected mount point, whether pressure is bytes or inodes, and which directory is actually hot.
LFCS-style practice rewards proof before action.
safe first command
Why does `df -h && df -i && du -xhd1 /var` make a good first storage drill?
It separates byte pressure, inode pressure, and the top-level `/var` directories without deleting anything.
The command is read-only but can be I/O-heavy, so scope matters.
expected output field
Which fields decide byte pressure versus inode pressure?
`Use%` decides byte pressure. `IUse%` decides inode pressure.
Do not confuse a byte-full filesystem with an inode-full filesystem.
next diagnostic step
Why prefer `sudo find /var -xdev ...` over `find / -xdev ...` here?
The sample already points to `/var`, so the narrower scan answers the question with less noise and less I/O.
Start with the hot path that evidence already named.
dangerous wrong move
Why is `rm -rf /var/cache/*` not a safe first answer?
It assumes the cause and deletes state before proving which directory or file owns the pressure.
Deletion comes after evidence, owner review, and rollback thinking.
verification check
After cleanup, what should you rerun?
Rerun the same `df -h` and `df -i` checks so the before/after fields are comparable.
Verification should use the same decisive fields.
help command
You forgot what `du -d1` means. What should you run?
Run `du --help` or `man du`. `-d1` limits summary depth to one directory level on GNU du.
Know the command, then know how to ask the system for detail.
Quick quiz
Check the reasoning locally in your browser. Answers are not sent anywhere.