tldr/pages/linux/fstrim.md

18 lines
405 B
Markdown
Raw Normal View History

2019-06-21 01:08:25 +01:00
# 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>.
2019-06-21 01:08:25 +01:00
- 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 {{/}}`