svcadm(8)을 검색하려면 섹션에서 8 을 선택하고, 맨 페이지 이름에 svcadm을 입력하고 검색을 누른다.
mkfile(8)
mkfile(8) System Administration Commands mkfile(8)
NAME
mkfile - create a file
SYNOPSIS
mkfile [-nv] size file...
mkfile [-v] -p pattern [-g length] size file...
mkfile [-v] -P pattern-file [-g length] size file...
DESCRIPTION
The mkfile utility creates one or more files, each containing size
bytes. The files are zero filled, unless a fill pattern is specified.
The size argument is a plain number, with an optional fraction and
scale factor representing multiples of 1024 bytes: k, m, g, t, p, or e,
denoting kilobytes, megabytes, gigabytes, terabytes, petabytes, or ex‐
abytes respectively. Alternatively, the scale factor b denotes 512-byte
blocks. The scale factor 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).
OPTIONS
-g length
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.
-n
Create an empty file. The size is established, but disk blocks are
not allocated until data is written to them.
-p pattern
File should be filled with given textual pattern instead of zeros.
-P pattern-file
A pattern to fill a file should be read from pattern-file.
-v
Verbose. Report the names and sizes of created files.
EXIT STATUS
The following exit values are returned:
0 Success.
>0 An error occurred.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
tab() box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) ATTRIBUTE TYPEAT‐
TRIBUTE VALUE _ Availabilitysystem/core-os _ Interface StabilityCommit‐
ted
SEE ALSO
chmod(1), attributes(7), swap(8)
Oracle Solaris 11.4 16 June 2022 mkfile(8)