macOS-查看和开启APFS卷的碎片整理功能
查看和开启APFS卷的碎片整理功能
keywords: apfs defragmentation, apfs defrag
Usage: diskutil apfs defragment|defrag
|
status|enable|disable
where= APFS Container DiskIdentifier
= APFS Volume DiskIdentifier
Manage defragmentation of the specified APFS Container or Volume. You can see
whether automatic defragmentation is enabled by specifying “status”. You can
set automatic defragmentation behavior by specifying “enable” or “disable”.
Ownership of the affected disks is required.
Example: diskutil apfs defragment disk5 enable
diskutil apfs defragment disk5s1 status
- 查看自动碎片整理功能状态
1 |
|
- 启用自动碎片整理功能
1 |
|
- 禁用自动碎片整理功能
1 |
|
macOS-查看和开启APFS卷的碎片整理功能
https://dnacore.github.io/post/d7608214-2416-4351-b92a-b91f9ea15a7d.html