mkfile(8) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

mkfile(8)

System Administration Commands                                       mkfile(8)



NAME
       mkfile - create a file

SYNOPSIS
       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...

DESCRIPTION
       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).

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 filename. The size is  noted,  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 filename    A pattern to fill a file should be read from filename.


       -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               20 Jun 2016                        mkfile(8)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3