Skip to content

Linux & shell: Zip & compress

4 Linux & shell commands: Zip & compress. Click a command to see what each part does.

Index
4 items
Click a command to see what each part does.

Zip & compress4

  • zip -r <archive>.zip <dir>Zip a folder

    What each part does

    1. zipcreate a .zip archive
    2. -rinclude folders recursively
  • unzip <archive>.zip -d <dir>Unzip into a folder

    What each part does

    1. -d <dir>extract into <dir> instead of the current folder
  • gzip <file>; gunzip <file>.gzCompress / decompress one file

    What each part does

    1. gzip <file>replace <file> with <file>.gz
    2. gunziprestore the original
  • tar -tf <archive>.tar.gzList what is inside a tarball

    What each part does

    1. -tlist contents
    2. -farchive file name

My DevOps Playbook by Angelo John Calleja

New runbook

GitHub not connected

Saving is handled by the site: the GitHub token is stored in Cloudflare, not in your browser. Enter the editor password (the EDITOR_PASSWORD secret) to unlock saving in this browser.

Saving commits to gelogrammer/My_DevOps_Playbook. Create a fine-grained token with access to only this repo andContents: Read and write, then paste it here. It is stored only in this browser.

src/content/docs/…