Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

mkfile(8) [osx man page]

MKFILE(8)						      System Manager's Manual							 MKFILE(8)

NAME
mkfile - create a file SYNOPSIS
mkfile [ -nv ] size[b|k|m|g] filename ... DESCRIPTION
mkfile creates one or more files that are suitable for use as NFS-mounted swap areas. The sticky bit is set, and the file is padded with zeroes by default. Non-root users must set the sticky bit using chmod(1). The default size unit is bytes, but the following suffixes may be used to multiply by the given factor: b (512), k (1024), m (1048576), and g (1073741824). OPTIONS
-n Create an empty filename. The size is noted, but disk blocks aren't allocated until data is written to them. -v Verbose. Report the names and sizes of created files. WARNING
If a client's swap file is removed and recreated, it must be re-exported before the client will be able to access it. This action may only be done when the client is not running. SEE ALSO
chmod(2), stat(2), sticky(8) 1 September 1997 MKFILE(8)

Check Out this Related Man Page

mkfile(1M)                                                                                                                              mkfile(1M)

NAME
mkfile - create a file SYNOPSIS
mkfile [-nv] size [g | k | b | m] filename... 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. -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. 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). See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ chmod(1), swap(1M), attributes(5), largefile(5) 2 Feb 2001 mkfile(1M)
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to find a command in Unix?

How can I know that my FreeBSD OS has commands mkdir or mkfile? Can I do like this: find / -name mkdir find / -name mkfile But I do not see them??? Thanks. (1 Reply)
Discussion started by: lacasa
1 Replies

2. Shell Programming and Scripting

mkmkfiles.imake: line 51: syntax error: unexpected end of file

Hi, i am installing glut-3.5 using that ./mkmkfiles.imake its showing an error msg as root@lxdevenv:~/Desktop/openGL/glut-3.5# ./mkmkfiles.imake ./mkmkfiles.imake: line 51: syntax error: unexpected end of file root@lxdevenv:~/Desktop/openGL/glut-3.5# actually there are 49 lines in... (3 Replies)
Discussion started by: Ravikishore
3 Replies

3. Filesystems, Disks and Memory

Create file for space Reserve

Hi All, I want to make a 3GB of space reserve on Solaris. Let me know whether there is a way by creating empty file of 3GB so that i can delete that file in future to utilize that space. Or any other better ways for space reserve. -Vinodh' Kumar (4 Replies)
Discussion started by: vino_hymi
4 Replies

4. Solaris

Why mkfile decreases available memory?

Hi, we are experiencing very odd behavior. After "mkfile 1g <somefile>" the available memory seen through vmstat memory free column decreases by the same ammount. It doesn't matter where the <somefile> is located, even when the file is on NAS, the available memory decreases. When the file is... (2 Replies)
Discussion started by: jan_bar
2 Replies

5. Solaris

mkfile -n question

Hi, I made an ldom with 160 GB of disk space (makefile -n 160g ldg1). Inside the ldom I have a slice, say /mount1 of size 30G. Assuming that I keep the /mount1 unmounted, i-e, it will never be used, is it safe to say that the file ldg1 will never grow past 130G? (6 Replies)
Discussion started by: Mack1982
6 Replies