From 9de9248a4685b4466c09ce1b7adbf0e699ba00df Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Fri, 21 Jun 2019 01:08:25 +0100 Subject: [PATCH] fstrim: add page --- pages/linux/fstrim.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 pages/linux/fstrim.md 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 {{/}}`