xfs_mkfile(8)              System Manager's Manual             xfs_mkfile(8)

NAME         top

       xfs_mkfile - create an XFS file

SYNOPSIS         top

       xfs_mkfile [ -v ] [ -n ] [ -p ] size[k|b|m|g] filename ...
       xfs_mkfile -V

DESCRIPTION         top

       xfs_mkfile creates one or more files. The file is padded with zeroes
       by default.  The default size is in bytes, but it can be flagged as
       kilobytes, blocks, megabytes, or gigabytes with the k, b, m, or g
       suffixes, respectively.

OPTIONS         top

       -v     Verbose. Report the names and sizes of created files.

       -n     No bytes. Create a holey file - that is, do not write out any
              data, just seek to end of file and write a block.

       -p     Preallocate.  The file is preallocated, then overwritten with
              zeroes, then truncated to the desired size.

       -V     Prints the version number and exits.

COLOPHON         top

       This page is part of the xfsprogs (utilities for XFS filesystems)
       project.  Information about the project can be found at 
       ⟨⟩.  If you have a bug report for this manual page,
       send it to  This page was obtained from
       the project's upstream Git repository
       ⟨⟩ on
       2019-11-19.  (At that time, the date of the most recent commit that
       was found in the repository was 2019-11-15.)  If you discover any
       rendering problems in this HTML version of the page, or you believe
       there is a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to