System Grab Bag

View all TLDR pages from common (or from all pages)

mktemp

Create a temporary file or directory. More information: https://ss64.com/osx/mktemp.html.
  • Create an empty temporary file and print the absolute path to it:
    mktemp
  • Create an empty temporary file with a given suffix and print the absolute path to file:
    mktemp --suffix "{{.ext}}"
  • Create a temporary directory and print the absolute path to it:
    mktemp -d

License and Disclaimer

The content on this page is copyright © 2014—present the tldr-pages team and contributors.
This page is used with permission under Creative Commons Attribution 4.0 International License.

While we do attempt to make sure content is accurate, there isn't a warranty of any kind.

Other Projects

This TLDR page is also found in other projects: