MKTEMP(1)

πŸ“¦ version 0.12.0, in arch rolling

πŸ’… MKTEMP(1) πŸ’…

okay so welcome to the mktemp(1) page, straight from the General Commands Manual β€” she’s the one who makes temporary files and directories, and we’re gonna read the whole thing together, no skips, periodt ✨


🌸 NAME 🌸

  • mktemp β€” creates a temporary file or directory. that’s the name and the whole assignment bestie πŸ’–

✨ SYNOPSIS ✨

mktemp [OPTION]... [TEMPLATE]

πŸŽ€ DESCRIPTION πŸŽ€

okay so mktemp creates a temporary file or directory. literally that’s the description, and honestly? iconic. πŸ¦‹

πŸ’… OPTIONS πŸ’…

  • -d, --directory β€” makes a directory instead of a file. slay πŸŽ€
  • -u, --dry-run β€” does not create anything; it merely prints a name. this one is unsafe, so keep that in mind bestie 😭
  • -q, --quiet β€” fails silently if an error occurs. no yelling, just quiet failure energy.
  • --suffix <SUFFIX> β€” appends SUFFIX to TEMPLATE. SUFFIX must not contain a path separator. this option is implied if TEMPLATE does not end with X.
  • -p <DIR> β€” short form of --tmpdir. cute lil abbreviation 🫢
  • --tmpdir[=<DIR>] β€” interprets TEMPLATE relative to DIR; if DIR is not specified, use $TMPDIR ($TMP on windows) if set, else /tmp. with this option, TEMPLATE must not be an absolute name; unlike with -t, TEMPLATE may contain slashes, but mktemp creates only the final component. very specific, very demure ✨
  • -t β€” generates a template (using the supplied prefix and TMPDIR (TMP on windows) if set) to create a filename template. [deprecated] β€” she’s old-school, okay? πŸ’€
  • -h, --help β€” prints help. the classic.
  • -V, --version β€” prints version. another classic.
  • [template]

πŸ† VERSION πŸ†

version check bestie: v(uutils coreutils) 0.12.0 πŸŽ€


mwah πŸ’– stay temporary, stay iconic β€” source/version: v(uutils coreutils) 0.12.0, date: 2026-09-17 🌈

πŸ“¦ where this page comes from