added "cd -"

This commit is contained in:
deinonychus 2024-07-22 13:58:49 +02:00 committed by GitHub
parent 212326d7a3
commit 419d4862b5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3180,6 +3180,15 @@ cd $(mktemp -d)
# for example, this will create a temporary directory "/tmp/tmp.TivmPLUXFT" # for example, this will create a temporary directory "/tmp/tmp.TivmPLUXFT"
``` ```
##### Quickly return to last working directory
```bash
cd -
# example that will get you back to home directory:
# cd ~
# cd /tmp/tmp.TivmPLUXFT
# cd -
```
##### Make all directories at one time! ##### Make all directories at one time!
```bash ```bash
mkdir -p project/{lib/ext,bin,src,doc/{html,info,pdf},demo/stat} mkdir -p project/{lib/ext,bin,src,doc/{html,info,pdf},demo/stat}