- Zip the content of a directory without including the directory itself
This commit is contained in:
bonnie 2020-07-19 22:28:38 +08:00
parent fe139c35d1
commit 39fbcae0b7

View File

@ -3045,6 +3045,13 @@ tar xopf file.tar
tar xvf -C /path/to/directory filename.gz
```
##### Zip the content of a directory without including the directory itself
```bash
# First cd to the directory, they run:
zip -r -D ../myzipfile .
# you will see the myzipfile.zip in the parent directory (cd ..)
```
##### Output a y/n repeatedly until killed
```bash
# 'y':