mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 08:15:23 +02:00
zip: improve page (#1030)
- reorganize examples for a more logical progression - make descriptions clearer and more in line with the option names they describe (c.f. #782 and #1018)
This commit is contained in:
parent
34aec29c08
commit
be0fbaec97
1 changed files with 9 additions and 5 deletions
|
@ -2,6 +2,14 @@
|
|||
|
||||
> Package and compress (archive) files into zip file.
|
||||
|
||||
- Package and compress a directory and its contents, [r]ecursively:
|
||||
|
||||
`zip -r {{compressed.zip}} {{/path/to/dir}}`
|
||||
|
||||
- E[x]clude unwanted files from being added to the compressed archive:
|
||||
|
||||
`zip -r {{compressed.zip}} {{path/to/dir}} -x \*.git\* \*node_modules\* ...`
|
||||
|
||||
- Package and compress multiple directories and files:
|
||||
|
||||
`zip -r {{compressed.zip}} {{/path/to/dir1 /path/to/dir2 /path/to/file}}`
|
||||
|
@ -10,10 +18,6 @@
|
|||
|
||||
`zip {{compressed.zip}} {{path/to/file}}`
|
||||
|
||||
- Remove unwanted files from an existing zip file:
|
||||
- [D]elete files from an existing zip file:
|
||||
|
||||
`zip -d {{compressed.zip}} "{{foo/*.tmp}}"`
|
||||
|
||||
- Exclude unwanted files from being added to the compressed archive:
|
||||
|
||||
`zip -r {{compressed.zip}} {{path/to/dir}} -x \*.git\* \*node_modules\* ...`
|
||||
|
|
Loading…
Add table
Reference in a new issue