mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2024-12-23 00:36:35 +00:00
Others
- Zip the content of a directory without including the directory itself
This commit is contained in:
parent
fe139c35d1
commit
39fbcae0b7
@ -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':
|
||||
|
Loading…
Reference in New Issue
Block a user