diff --git a/pages/linux/fstrim.md b/pages/linux/fstrim.md new file mode 100644 index 0000000000..262f9d4c43 --- /dev/null +++ b/pages/linux/fstrim.md @@ -0,0 +1,16 @@ +# 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 {{/}}`