Back to commands

Linux Survival Basics

Read-only

Check /boot Disk Usage

You need free space and Use% for the boot filesystem.

Command

df -h /boot

Before you run this

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

When not to use it: Do not delete kernels from /boot directly.

Expected output

Filesystem size, used, available, Use%, and mountpoint for /boot.

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 kernel package cleanup.

When not to use it

Do not delete kernels from /boot directly.

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. df -h /boot
  2. df -h /boot

next steps

Related commands

Linux Survival Basics Can be slow

Find the Files Eating Your Disk

The disk was full, but guessing at folders was the slow part.

find /var -type f -printf '%s %p\n' | sort -nr | head -20

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
  • Linux+ style troubleshooting review

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