mkfile man page on SmartOS

Man page or keyword search:  
man Server   16655 pages
apropos Keyword Search (all sections)
Output format
SmartOS logo
[printable version]

MKFILE(1M)							    MKFILE(1M)

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 ( 2^31 bytes).

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

       ┌────────────────────┬─────────────────┐
       │  ATTRIBUTE TYPE    │ ATTRIBUTE VALUE │
       ├────────────────────┼─────────────────┤
       │Interface Stability │ Committed	      │
       └────────────────────┴─────────────────┘

SEE ALSO
       chmod(1), swap(1M), attributes(5), largefile(5)

				 Feb 20, 2008			    MKFILE(1M)
[top]

List of man pages available for SmartOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net