~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to man/mktemp.1

  • Committer: Colin Watson
  • Date: 2013-10-30 15:48:33 UTC
  • mfrom: (8.3.5 sid)
  • Revision ID: cjwatson@canonical.com-20131030154833-xdt6e1yfffqom1c4
merge from Debian 8.21-1

Show diffs side-by-side

added added

removed removed

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