How to Zip and Unzip files in Liunx

To compress we are using zip. In windows generally we are using WinZip. But in Linux we have to install zip and unzip tools.

How to install zip and unzip tools:

If are on Ubuntu the issue below command.

If you are on Fedora/CentOS then

Some commands:

To zip a file:

To zip a folder:

To zip a folder recursively:

To unzip:

Verify zip:

Extract a single file from the zip:

Extract all file to a temporary folder

List all files inside the zip

Share and Enjoy

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
The following two tabs change content below.

Tapas Mishra

Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.

Leave a Reply