OSDN Git Service

e5e728d7455388ade8bcebe6f1376b06280b3a2e
[linuxjm/coreutils.git] / original / man1 / mktemp.1
1 .\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.35.
2 .TH MKTEMP "1" "April 2010" "GNU coreutils 8.5" "User Commands"
3 .SH NAME
4 mktemp \- create a temporary file or directory
5 .SH SYNOPSIS
6 .B mktemp
7 [\fIOPTION\fR]... [\fITEMPLATE\fR]
8 .SH DESCRIPTION
9 .\" Add any additional description here
10 .PP
11 Create a temporary file or directory, safely, and print its name.
12 TEMPLATE must contain at least 3 consecutive `X's in last component.
13 If TEMPLATE is not specified, use tmp.XXXXXXXXXX, and \fB\-\-tmpdir\fR is implied.
14 .TP
15 \fB\-d\fR, \fB\-\-directory\fR
16 create a directory, not a file
17 .TP
18 \fB\-u\fR, \fB\-\-dry\-run\fR
19 do not create anything; merely print a name (unsafe)
20 .TP
21 \fB\-q\fR, \fB\-\-quiet\fR
22 suppress diagnostics about file/dir\-creation failure
23 .TP
24 \fB\-\-suffix\fR=\fISUFF\fR
25 append SUFF to TEMPLATE.  SUFF must not contain slash.
26 This option is implied if TEMPLATE does not end in X.
27 .TP
28 \fB\-\-tmpdir\fR[=\fIDIR\fR]
29 interpret TEMPLATE relative to DIR.  If DIR is not
30 specified, use $TMPDIR if set, else /tmp.  With
31 this option, TEMPLATE must not be an absolute name.
32 Unlike with \fB\-t\fR, TEMPLATE may contain slashes, but
33 mktemp creates only the final component
34 .TP
35 \fB\-p\fR DIR
36 use DIR as a prefix; implies \fB\-t\fR [deprecated]
37 .TP
38 \fB\-t\fR
39 interpret TEMPLATE as a single file name component,
40 relative to a directory: $TMPDIR, if set; else the
41 directory specified via \fB\-p\fR; else /tmp [deprecated]
42 .TP
43 \fB\-\-help\fR
44 display this help and exit
45 .TP
46 \fB\-\-version\fR
47 output version information and exit
48 .SH AUTHOR
49 Written by Jim Meyering and Eric Blake.
50 .SH "REPORTING BUGS"
51 Report mktemp bugs to bug\-coreutils@gnu.org
52 .br
53 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
54 .br
55 General help using GNU software: <http://www.gnu.org/gethelp/>
56 .br
57 Report mktemp translation bugs to <http://translationproject.org/team/>
58 .SH COPYRIGHT
59 Copyright \(co 2010 Free Software Foundation, Inc.
60 License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
61 .br
62 This is free software: you are free to change and redistribute it.
63 There is NO WARRANTY, to the extent permitted by law.
64 .SH "SEE ALSO"
65 mkstemp(3), mkdtemp(3), mktemp(3)
66 .PP
67 The full documentation for
68 .B mktemp
69 is maintained as a Texinfo manual.  If the
70 .B info
71 and
72 .B mktemp
73 programs are properly installed at your site, the command
74 .IP
75 .B info coreutils \(aqmktemp invocation\(aq
76 .PP
77 should give you access to the complete manual.