add mktemp

This commit is contained in:
Jacob Chapman 2022-05-14 12:54:23 -05:00 committed by GitHub
parent a59c8598b0
commit 57085df9be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3105,6 +3105,11 @@ rsync -av directory user@ip_address:/path/to/directory.bak
# skip files that are newer on receiver (i prefer this one!)
```
##### Create a temporary directory and `cd` into it
```bash
cd $(mktemp -d)
```
##### Make all directories at one time!
```bash
mkdir -p project/{lib/ext,bin,src,doc/{html,info,pdf},demo/stat}