mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
fstrim: add page
This commit is contained in:
parent
261abcdd90
commit
9de9248a46
1 changed files with 16 additions and 0 deletions
16
pages/linux/fstrim.md
Normal file
16
pages/linux/fstrim.md
Normal file
|
@ -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 {{/}}`
|
Loading…
Add table
Reference in a new issue