mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-30 14:41:39 +00:00
22 lines
413 B
Plaintext
22 lines
413 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# e4defrag
|
|
|
|
> Defragment an ext4 filesystem.
|
|
> More information: <https://manned.org/e4defrag>.
|
|
|
|
- Defragment the filesystem:
|
|
|
|
`e4defrag {{/dev/sdXN}}`
|
|
|
|
- See how fragmented a filesystem is:
|
|
|
|
`e4defrag -c {{/dev/sdXN}}`
|
|
|
|
- Print errors and the fragmentation count before and after each file:
|
|
|
|
`e4defrag -v {{/dev/sdXN}}`
|