Install the complete package with local command reference and every published mode.
install zipzipUse
zip <src|arc.zip|file.gz|file.bz2> [dst] [options]zip <src> [dst]create a
zip <arc.zip> [dst]extract a
zip <file.gz|file.bz2> [dst]decompress a GZIP or BZIP2 file
For a directory use
-m store|deflate|bzip2|lzma|zstd selects the method inside a .zip, not a different archive extension. Some methods require newer libzip builds and may not be readable everywhere.
-l lists entries without extraction; -t reads them to test integrity. Extract by passing an existing .zip, .gz or .bz2 as source. Conflicting destination files are preserved unless -f is specified. -d deletes the source only after successful creation (requires
Unsafe paths, duplicate entries and symbolic-link entries are rejected. After creating or extracting a
Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.
Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.
Base and Minimum are two packages of the same current module release, not separate command versions.
Install the complete package with local command reference and every published mode.
install zipInstall the reduced package. Local reference is omitted;
install zip -mInstall exactly this published version.
install zip -v 1.2.5Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade zipRemove the extension block while leaving the core and unrelated modules intact.
install zip -uExamples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.
cd \sandbox | zip data tmp/data.zipsandbox
README.txt
current.txt
data.tar
data.zip
draft.txt
new.txtzip tmp/data.zip -ldata/ directory
data/sample.csv file · 59 B
data/sample.txt file · 100 B
data/users.json file · 102 Bzip tmp/data.zip -tStatus Archive OK
Entries 4
Files 3
Size 261 Bzip tmp/data.zip tmp/restoreddata/zip data tmp/data.zipArchive already existszip data tmp/data.zip -fREADME.txt
current.txt
data.tar
data.zip
draft.txt
new.txtzip data tmp/data-0.zip -0README.txt
current.txt
data-0.zip
data.tar
data.zip
draft.txt
new.txtzip data tmp/data-9.zip -9README.txt
current.txt
data-9.zip
data.tar
data.zip
draft.txt
new.txtzip data tmp/data-store.zip -m storedata-store.zip
data.tar
data.zipzip data tmp/data-deflate.zip -m deflatedata-deflate.zip
data.tar
data.zipzip data tmp/data-zstd.zip -m zstdZIP compression method is not supported on this hostzip logs/app.log tmp/app.log.gz -gzapp.log.gz
app.logzip tmp/app.log.gz -lFile app.log
Compressed 92 B
Original 96 Bzip tmp/app.log.gz -tStatus Archive OK
Size 96 Bzip tmp/app.log.gz tmp/restored.logrestored.logzip logs/app.log tmp/app.log.bz2 -bz2bz2 extension requiredzip tmp/app.log.bz2 tmp/restored.logrestored.logzip tmp/draft.txt tmp/draft.zip -ddraft.zip
data.zip
(source draft.txt removed only after successful creation)zip missing.zipSource not foundsandbox/data/sample.txtThe example uses a file or directory from the protected /sandbox/ documentation workspace.
lil-terminal sandbox text file
This file is safe to read, copy, rename, replace, hash and archive.
Current stable release of