tldr/pages/linux/e4defrag.md

17 lines
321 B
Markdown
Raw Normal View History

2020-08-31 00:59:50 +01:00
# e4defrag
> Defragment an ext4 filesystem.
> More information: <https://manned.org/e4defrag>.
2020-08-31 00:59:50 +01:00
- Defragment the filesystem:
2020-08-31 00:59:50 +01:00
`e4defrag {{/dev/sdXN}}`
- See how fragmented a filesystem is:
2020-08-31 00:59:50 +01:00
`e4defrag -c {{/dev/sdXN}}`
- Print errors and the fragmentation count before and after each file:
`e4defrag -v {{/dev/sdXN}}`