mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-15 19:48:56 +00:00
Update cheatsheets
This commit is contained in:
22
linux/fstrim
Normal file
22
linux/fstrim
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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>.
|
||||
|
||||
- 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 {{/}}`
|
||||
Reference in New Issue
Block a user