Back to commands

Linux Survival Basics

Read-only

Verify fstab with findmnt

You need syntax and mount-target validation for `/etc/fstab`.

Command

findmnt --verify

Before you run this

System impact: Read-only. Low when scoped to the shown target.

When not to use it: Do not assume remote devices are reachable just because syntax validates.

Expected output

Warnings or errors for fstab entries, or a success message when entries validate.

System impact

Read-only. Nothing changes. The command reads current state and prints diagnostic evidence.

Recovery / rollback: no state is changed.

When to use it

Use before rebooting or after mount failures.

When not to use it

Do not assume remote devices are reachable just because syntax validates.

Example run

Commands shown

These are the commands shown for inspection. Treat them as an example, not proof that your system will behave identically.

  1. findmnt --verify
  2. findmnt --verify

next steps

Related commands

Linux Survival Basics Can be slow

Read Mount and fstab Warnings

The boot journal often names the mount or dependency that failed.

journalctl -b -p warning --no-pager | grep -iE 'mount|fstab|dependency'
Linux Survival Basics Sensitive output

Show Recent Server Reboots

Confirm whether the server actually rebooted and when.

last -x reboot | head -5
Linux Survival Basics Read-only

Check apt Daily Timers

Automatic apt timers can explain locks that seem mysterious.

systemctl list-timers apt-daily* --no-pager
Linux Survival Basics Read-only

Turn Cron Into a Readable Table

Cron is easier to debug when the schedule and command stop blending together.

crontab -l | awk 'NF && $1 !~ /^#/ {printf "%-16s %s\n", $1" "$2" "$3" "$4" "$5, substr($0,index($0,$6))}'

next diagnostic step

Where to go from this command

Study mapping

Use this as independent command practice: read the notes, predict the output, then compare it with the example before using a real shell.

  • LPIC-1 style command-line practice
  • LFCS style performance-task practice

Independent study support only. No affiliation, endorsement, exam dumps, or real exam questions.