1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-03-28 21:16:20 +01:00
tldr/pages/linux/fstrim.md

423 B

fstrim

Discard unused blocks on a mounted filesystem. Only supported by flash memory devices such as SSDs and microSD cards. More information: https://manned.org/fstrim.

  • Trim unused blocks on all mounted partitions that support it:

sudo fstrim {{[-a|--all]}}

  • Trim unused blocks on a specified partition:

sudo fstrim {{/}}

  • Display statistics after trimming:

sudo fstrim {{[-v|--verbose]}} {{/}}