mktemp
Create a temporary file or directory. More information: <https://ss64.com/osx/mktemp.html>.
Install
- All systems
-
curl cmd.cat/mktemp.sh
- Debian
-
apt-get install coreutils
- Ubuntu
-
apt-get install coreutils
-
Alpine
-
apk add coreutils
- Arch Linux
-
pacman -S coreutils
- Kali Linux
-
apt-get install coreutils
- CentOS
-
yum install coreutils
- Fedora
-
dnf install coreutils
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install coreutils
- OS X
-
brew install coreutils
- Raspbian
-
apt-get install coreutils
- Dockerfile
- dockerfile.run/mktemp
- Docker
-
docker run cmd.cat/mktemp mktemp
powered by Commando
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
© tl;dr; authors and contributors