mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-11-25 13:57:01 +00:00
added "cd -"
This commit is contained in:
parent
212326d7a3
commit
419d4862b5
@ -3180,6 +3180,15 @@ cd $(mktemp -d)
|
||||
# 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!
|
||||
```bash
|
||||
mkdir -p project/{lib/ext,bin,src,doc/{html,info,pdf},demo/stat}
|
||||
|
Loading…
Reference in New Issue
Block a user