1mkfile(1M) System Administration Commands mkfile(1M)
2
3
4
6 mkfile - create a file
7
9 mkfile [-nv] size [g | k | b | m] filename...
10
11
13 mkfile creates one or more files that are suitable for use as NFS-
14 mounted swap areas, or as local swap areas. When a root user executes
15 mkfile(), the sticky bit is set and the file is padded with zeros by
16 default. When non-root users execute mkfile(), they must manually
17 set the sticky bit using chmod(1). The default size is in bytes, but
18 it can be flagged as gigabytes, kilobytes, blocks, or megabytes, with
19 the g, k, b, or m suffixes, respectively.
20
22 -n Create an empty filename. The size is noted, but disk blocks are
23 not allocated until data is written to them. Files created with
24 this option cannot be swapped over local UFS mounts.
25
26
27 -v Verbose. Report the names and sizes of created files.
28
29
31 The following exit values are returned:
32
33 0 Success.
34
35
36 >0 An error occurred.
37
38
40 See largefile(5) for the description of the behavior of mkfile when
41 encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
42
44 See attributes(5) for descriptions of the following attributes:
45
46
47
48
49 ┌─────────────────────────────┬─────────────────────────────┐
50 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
51 ├─────────────────────────────┼─────────────────────────────┤
52 │Availability │SUNWcsu │
53 ├─────────────────────────────┼─────────────────────────────┤
54 │Interface Stability │Committed │
55 └─────────────────────────────┴─────────────────────────────┘
56
58 chmod(1), swap(1M), attributes(5), largefile(5)
59
60
61
62SunOS 5.11 20 Feb 2008 mkfile(1M)