filefrag
Report how badly fragmented a particular file might be. tldr-pages
On Linux
Linux
Display a report for one or more files
filefrag path/to/file1 path/to/file2 ...IdentifyDisplay a report using a 1024 byte blocksize
filefrag -k path/to/fileIdentifyDisplay a report using a certain blocksize
filefrag -b1024 path/to/fileIdentifySync the file before requesting the mapping
filefrag -s path/to/file1 path/to/file2 ...IdentifyDisplay mapping of extended attributes
filefrag -x path/to/file1 path/to/file2 ...IdentifyDisplay a report with verbose information
filefrag -v path/to/file1 path/to/file2 ...Identify