
mmd | 307
Linux
Commands
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
-v0 Create an old style swap area.
-v1 Create a new style swap area. (The default behavior on newer
kernels.)
mktemp
mktemp [options] [template]
Generate a unique temporary filename for use in a script. The file-
name is based on the specified template, which may be any
filename with at least six Xs appended (e.g., /tmp/mytemp.
XXXXXX). mktemp replaces the Xs with the current process
number and/or a unique letter combination. The file is created
with mode 0600 (unless -u is specified), and the filename is written
to standard output. With no template specified, the default file
tmp.XXXXXXXXXX is created and the -t option is implied.
Options
-d Make a directory, not a file.
-q Fail silently in case of error. Useful to prevent error output
from being sent to standard error.
-p directory
Generate the temporary file in the specified directory.
-t Generate a path to the file rooted in a temporary directory.
The directory is taken from the TMPDIR environment vari-
able if it is set, or from the -p option. If neither is set, /tmp is
used.
-u Operate in “unsafe” mode and unlink the temporary file
before mktemp exits. Use of this option is not recommended.
-V Print version information and exit.
mlabel
mlabel [options] drive[label]
Label an MS-DOS filesystem (maximum of 11 characters), ...