]> git.saurik.com Git - apple/system_cmds.git/blame - mkfile.tproj/mkfile.8
system_cmds-336.1.11.tar.gz
[apple/system_cmds.git] / mkfile.tproj / mkfile.8
CommitLineData
b51d5b5f
A
1.\" (c) 1997 Apple Computer, Inc.
2.TH MKFILE 8 "1 September 1997"
3.SH NAME
4mkfile \- create a file
5.SH SYNOPSIS
6.B mkfile
7.RB [ " -nv " ]
8.I size\c
9[\c
10.BR b | k | m | g\c
11]
12.IR filename " .\|.\|."
13.SH DESCRIPTION
14.B mkfile
15creates one or more files that are suitable for use as
16.SM NFS-\s0mounted
17swap areas. The sticky bit is set, and
18the file is padded with zeroes by default.
19Non-root users must set the sticky bit using
20chmod(1).
21The default size unit is bytes, but the following suffixes
22may be used to multiply by the given factor:
23.B b
24(512),
25.B k
26(1024),
27.B m
28(1048576), and
29.B g
30(1073741824).
31.SH OPTIONS
32.TP
33.B \-n
34Create an empty
35.IR filename .
36The size is noted, but disk blocks aren't allocated until data is
37written to them.
38.TP
39.B \-v
40Verbose. Report the names and sizes of created files.
41.SH WARNING
42If a client's swap file is removed and recreated, it must be
43re-exported before the client will be able to access it.
44This action may only be done when the client is not running.
45.SH "SEE ALSO"
46.TP
47chmod(2), stat(2), exportfs(8), sticky(8)