Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MKFILE(8)		  BSD System Manager's Manual		     MKFILE(8)

NAME
     mkfile -- create a	file

SYNOPSIS
     mkfile [-nv] size[e|p|t|g|m|k|b] filename ...

DESCRIPTION
     mkfile creates one	or more	files that are suitable	for use	as NFS-mounted
     swap areas, or as local swap areas.  The file is padded with zeros	by de-
     fault.  The default size is in bytes, but it can be flagged as exabytes,
     petabytes,	terabytes, gigabytes, megabytes, kilobytes, or blocks, with
     the e, p, t, g, m,	k, or b	suffixes, respectively.

     The following options are available:

     -n	   Create an empty filename.  The size is noted, but disk blocks are
	   not allocated until data is written to them.

     -v	   Verbose.  Report the	names and sizes	of created files.

SEE ALSO
     swapon(2),	swapon(8), mdconfig(8)

HISTORY
     A mkfile command first appeared in	SunOS.

BSD			       January 21, 2004				   BSD

NAME | SYNOPSIS | DESCRIPTION | SEE ALSO | HISTORY

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=mkfile&sektion=8&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help