Run fstrim to keep your SSD fast
Trim unused blocks on SSDs so writes stay fast and the drive wears evenly.
01Command
$ sudo fstrim -av02What it does
SSDs cannot overwrite data in place; the drive only reclaims deleted blocks when the OS tells it which ones are free. fstrim passes that list to the drive, keeping write speed and longevity close to factory levels. Most modern distros ship a weekly fstrim.timer, so enabling it once is all a normal desktop needs.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- Solid state drive - ArchWikiEvidence: Documents fstrim.timer as the recommended periodic TRIM mechanism for SSDs.
- fstrim(8) — Arch Manual PagesEvidence: fstrim [-v] [-o offset] ... and the --all/--verbose flags are documented; the page notes fstrim discards unused blocks on a mounted filesystem.
Last verified: 2026-09-19 · Category: System & Settings
06Related solutions
autoremove deletes no-longer-needed dependency packages, and clean wipes the downloaded .deb cache in /var/cache/apt/archives.
ncdu scans a directory tree, then lets you browse sizes, navigate, and delete space hogs with one keypress.
Check how much space the binary journal consumes and permanently trim it by size, age, or file count.