1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-22 23:42:09 +02:00
tldr/pages/linux/fstrim.md
Starbeamrainbowlabs 9de9248a46 fstrim: add page
2019-06-24 11:10:53 -03:00

16 lines
356 B
Markdown

# fstrim
> Discard unused blocks on a mounted filesystem.
> Only supported by flash memory devices such as SSDs and microSD cards.
- 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 {{/}}`