Files
tldr/pages.zh/linux/fstrim.md

17 lines
383 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# fstrim
> 在已挂载的文件系统上丢弃未使用的块。
> 仅支持闪存设备如SSD和microSD卡。
> 更多信息:<https://manned.org/fstrim>。
- 在所有支持的已挂载分区上丢弃未使用的块:
`sudo fstrim --all`
- 在指定分区上丢弃未使用的块:
`sudo fstrim {{/}}`
- 在修剪后显示统计信息:
`sudo fstrim --verbose {{/}}`