2020-10-05 16:18:47 +01:00
|
|
|
# filefrag
|
|
|
|
|
|
|
|
> Report how badly fragmented a particular file might be.
|
2021-04-16 15:42:14 +01:00
|
|
|
> More information: <https://manned.org/filefrag>.
|
2020-10-05 16:18:47 +01:00
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
- Display a report for one or more files:
|
2020-10-05 16:18:47 +01:00
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`filefrag {{path/to/file1 path/to/file2 ...}}`
|
2020-10-05 16:18:47 +01:00
|
|
|
|
|
|
|
- Display a report using a 1024 byte blocksize:
|
|
|
|
|
|
|
|
`filefrag -b {{path/to/file}}`
|
|
|
|
|
|
|
|
- Sync the file before requesting the mapping:
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`filefrag -s {{path/to/file1 path/to/file2 ...}}`
|
2020-10-05 16:18:47 +01:00
|
|
|
|
|
|
|
- Display mapping of extended attributes:
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`filefrag -x {{path/to/file1 path/to/file2 ...}}`
|
2020-10-05 16:18:47 +01:00
|
|
|
|
|
|
|
- Display a report with verbose information:
|
|
|
|
|
2024-01-31 03:55:19 +00:00
|
|
|
`filefrag -v {{path/to/file1 path/to/file2 ...}}`
|