Skip to content

Compressing a file(s)

Ki Rill edited this page Apr 14, 2021 · 5 revisions

There many ways you can compress files using the Zippo Utility.

1. Zipping all files in the current working directory (cwd)

zippo zip

Add --path=... (-p=...) to tell Zippo what folder contents to zip.

2. Compressing a file

zippo zip --path=/Desktop/files/mymovie.mp4

It will zip mymovie.mp4 into archive.zip. You can set a different name using --name=... or -n=... options.

3. Compressing a several files in a directory

zippo zip --name=myzipfile.zip --path=/Desktop/files/ --files=file1.docx,file2.pdf,file3.wav

Use the "," coma character to separate file names that you would like to compress.

4. Excluding some files from compression (the rest is compressed)

zippo zip myzipfile.zip --ignore=file1.docx,file2.pdf,file3.wav

Keep in mind that since path is not provided, it will use the default configuration: cwd.

--name is optional, it will pick up the name automatically.

Clone this wiki locally