mkfile - create a file
mkfile [-nv] size [t | g | k | b | m] filename...
mkfile [-v] [-p pattern [-g length]] size [t | g | k | b | m] filename...
mkfile [-v] [-P filename [-g length]] size [t | g | k | b | m] filename...
By default, mkfile creates one or more files of the specified size that are padded with zeros. The default size is in bytes, but it can be flagged as terabytes, gigabytes, kilobytes, blocks, or megabytes, with the t, g, k, b, or m suffixes, respectively. Suffixes can be uppercase or lowercase.
If an administrator wishes to use a file created with mkfile as a swap file, they must first set the sticky bit using chmod(1).
Specify a gap (a space filled with zeros) between two copies of a pattern specified with argument –p. Length can be given in decimal, octal or hexadecimal.
Create an empty filename. The size is noted, but disk blocks are not allocated until data is written to them.
File should be filled with given textual pattern instead of zeros.
A pattern to fill a file should be read from filename.
Verbose. Report the names and sizes of created files.
The following exit values are returned:
Success.
An error occurred.
See attributes(7) for descriptions of the following attributes:
|