2014-01-28 07:47:32 +00:00
|
|
|
# zip
|
|
|
|
|
A bunch of new pages:
common/: dig, gzip, rm, sort, zfs, zpool
linux/: apt-get, shutdown
osx/: airport, caffeinate, diskutil, networksetup open, pgrep, qlmanage, say, shutdown, sysctl, system_profiler
Edits to existing pages:
curl: Added simple download example
find: Added iname and size exmaples
grep: Edited -c description
ps: Added wide lines example
ssh: edited -D description, added simple port forwarding example
unzip: added list option
2014-02-10 20:36:05 +00:00
|
|
|
> Package and compress (archive) files into zip file
|
2014-01-28 07:47:32 +00:00
|
|
|
|
2015-12-28 16:51:04 +00:00
|
|
|
- package and compress multiple directories and files
|
2014-01-28 07:47:32 +00:00
|
|
|
|
2014-01-28 12:08:30 +00:00
|
|
|
`zip -r {{compressed.zip}} {{/path/to/dir1 /path/to/dir2 /path/to/file}}`
|
2015-12-28 16:51:04 +00:00
|
|
|
|
|
|
|
- add files to an existing zip file
|
|
|
|
|
|
|
|
`zip {{compressed.zip}} {{path/to/file}}`
|
|
|
|
|
|
|
|
- remove unwanted files from an existing zip file
|
|
|
|
|
|
|
|
`zip -d {{compressed.zip}} "{{foo/*.tmp}}"`
|