Forrest logo
back to the filefrag tool

filefrag:tldr:59b00

filefrag: Display mapping of extended attributes.
$ filefrag -x ${filenames}
try on your machine

The filefrag command is used to report on file fragmentation on a filesystem. The -x option is used to show extended information about each file fragment.

${filenames} is a placeholder for one or more filenames that you would provide when running the command. You need to replace ${filenames} with the actual filenames or file paths you want to analyze.

By running this command, you will get a detailed report on the fragmentation of the specified files. The information will include the file name, the number of extents (a contiguous area of storage), the logical file offset of each extent, the physical file block location on the disk, and other details related to fragmentation.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the filefrag tool