fstrim
linux
Discard unused blocks on a mounted filesystem. Only supported by flash memory devices such as SSDs and microSD cards.
More info →Options (2)
-a, --allbooleanTrim unused blocks on all mounted partitions that support it
Example:
sudo fstrim {{[-a|--all]}}-v, --verbosebooleanDisplay statistics after trimming
Example:
sudo fstrim {{[-v|--verbose]}} {{/}}made by @shridhargupta | data from tldr-pages