System Grab Bag

View all TLDR pages from Linux (or from all pages)

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 --all
  • Trim unused blocks on a specified partition:
    sudo fstrim {{/}}
  • Display statistics after trimming:
    sudo fstrim --verbose {{/}}

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.