man pages section 1M: System Administration Commands
この本のみを検索
PDF 文書ファイルをダウンロードする (9905 KB)

mkfile(1M)

Name | Synopsis | Description | Options | Exit Status | Usage | Attributes | See Also

Name

    mkfile– create a file

Synopsis

    mkfile [-nv] size [g | k | b | m] filename...

Description

    mkfile creates one or more files that are suitable for use as NFS-mounted swap areas, or as local swap areas. When a root user executes mkfile(), the sticky bit is set and the file is padded with zeros by default. When non-root users execute mkfile(), they must manually set the sticky bit using chmod(1). The default size is in bytes, but it can be flagged as gigabytes, kilobytes, blocks, or megabytes, with the g, k, b, or m suffixes, respectively.

Options

    -n

    Create an empty filename. The size is noted, but disk blocks are not allocated until data is written to them. Files created with this option cannot be swapped over local UFS mounts.

    -v

    Verbose. Report the names and sizes of created files.

Exit Status

    The following exit values are returned:

    0

    Success.

    >0

    An error occurred.

Usage

    See largefile(5) for the description of the behavior of mkfile when encountering files greater than or equal to 2 Gbyte ( 231 bytes).

Attributes

    See attributes(5) for descriptions of the following attributes:

    ATTRIBUTE TYPE

    ATTRIBUTE VALUE

    Availability

    SUNWcsu

    Interface Stability

    Committed

See Also

SunOS 5.11 Last Revised 20 Feb 2008

Name | Synopsis | Description | Options | Exit Status | Usage | Attributes | See Also