Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/mktemp/mktemp.1
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" From: $OpenBSD: mktemp.1,v 1.8 1998/03/19 06:13:37 millert Exp $ | .\" From: $OpenBSD: mktemp.1,v 1.8 1998/03/19 06:13:37 millert Exp $ | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd December 30, 2005 | .Dd August 4, 2022 | ||||
.Dt MKTEMP 1 | .Dt MKTEMP 1 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm mktemp | .Nm mktemp | ||||
.Nd make temporary file name (unique) | .Nd make temporary file name (unique) | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.Nm | .Nm | ||||
.Op Fl d | .Op Fl d | ||||
▲ Show 20 Lines • Show All 87 Lines • ▼ Show 20 Lines | |||||
subverted, it still allows a simple denial of service attack. | subverted, it still allows a simple denial of service attack. | ||||
For these | For these | ||||
reasons it is suggested that | reasons it is suggested that | ||||
.Nm | .Nm | ||||
be used instead. | be used instead. | ||||
.Sh OPTIONS | .Sh OPTIONS | ||||
The available options are as follows: | The available options are as follows: | ||||
.Bl -tag -width indent | .Bl -tag -width indent | ||||
.It Fl d | .It Fl d , Fl -directory | ||||
Make a directory instead of a file. | Make a directory instead of a file. | ||||
.It Fl q | .It Fl q , Fl -quiet | ||||
Fail silently if an error occurs. | Fail silently if an error occurs. | ||||
This is useful if | This is useful if | ||||
a script does not want error output to go to standard error. | a script does not want error output to go to standard error. | ||||
.It Fl t Ar prefix | .It Fl t Ar prefix | ||||
Generate a template (using the supplied | Generate a template (using the supplied | ||||
.Ar prefix | .Ar prefix | ||||
and | and | ||||
.Ev TMPDIR | .Ev TMPDIR | ||||
if set) to create a filename template. | if set) to create a filename template. | ||||
.It Fl u | .It Fl u , Fl -dry-run | ||||
Operate in | Operate in | ||||
.Dq unsafe | .Dq unsafe | ||||
mode. | mode. | ||||
The temp file will be unlinked before | The temp file will be unlinked before | ||||
.Nm | .Nm | ||||
exits. | exits. | ||||
This is slightly better than | This is slightly better than | ||||
.Xr mktemp 3 | .Xr mktemp 3 | ||||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |