HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

filefrag — Report how badly fragmented a particular file might be. More information: <https://manned.org/filefr

Submitted by: @import:tldr-pages··
0
Viewed 0 times
reportcommandfilefragclifragmentedparticularhowbadly
linux

Problem

How to use the filefrag command: Report how badly fragmented a particular file might be. More information: <https://manned.org/filefrag>.

Solution

filefrag — Report how badly fragmented a particular file might be. More information: <https://manned.org/filefrag>.

Display a report for one or more files:
filefrag {{path/to/file1 path/to/file2 ...}}


Display a report using a 1024 byte blocksize:
filefrag -k {{path/to/file}}


Display a report using a certain blocksize:
filefrag -b{{1024|1K|1M|1G|...}} {{path/to/file}}


Sync the file before requesting the mapping:
filefrag -s {{path/to/file1 path/to/file2 ...}}


Display mapping of extended attributes:
filefrag -x {{path/to/file1 path/to/file2 ...}}


Display a report with verbose information:
filefrag -v {{path/to/file1 path/to/file2 ...}}

Code Snippets

Display a report for one or more files

filefrag {{path/to/file1 path/to/file2 ...}}

Display a report using a 1024 byte blocksize

filefrag -k {{path/to/file}}

Display a report using a certain blocksize

filefrag -b{{1024|1K|1M|1G|...}} {{path/to/file}}

Sync the file before requesting the mapping

filefrag -s {{path/to/file1 path/to/file2 ...}}

Display mapping of extended attributes

filefrag -x {{path/to/file1 path/to/file2 ...}}

Context

tldr-pages: linux/filefrag

Revisions (0)

No revisions yet.