How To Zip, Unzip Files In Linux?

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/zip-unzip-files-linux/
PINTEREST
PINTEREST
INSTAGRAM

Winzip, Winrar are popular packaging and compression tools for Windows operating system. Winzip was very popular in old times and this made zip compression algorithm popular too. Currenly a lot of file and folders are compressed with zip algorithm too. Zip compression is supported by Minix, Atari, MacOS, Android too. We look look how to compress and decompress with zip algorithm in this post

Install Zip For Ubuntu, Debian, Mint, Kali

To use zip functionality required packages should be downloaded they are not installed by default

Install Zip

Install Zip

Install Zip For Fedora, CentOs, RHEL

We can use yum package manager in order to install zip

Compress With Zip

How to zip a file? We can use zip command like below

Let’s compress some file

Compress With Zip

Compress With Zip

Compress Multiple Files With Zip

We can compress multiple files with zip we will add all file and folders at the end of the command as parameter

Compress Multiple Files With Zip

Compress Multiple Files With Zip

Compress Multiple Files With Extension

We will compress all png files in this directory.

Compress Multiple Files With Extension

Compress Multiple Files With Extension

Compress Folders

Compressing files requires no option to zip command but compressing folders requires recursive flag to the zip command.

LEARN MORE  Linux Directory and File Operations

Compress Folders

Compress Folders

Compress File By Searching Them

We can use find command to search files to zip. The files found by find will zipped .

Compress File By Searching Them

Compress File By Searching Them

Decompress Zip Files

Decompressing is easier than compressing we just provide archive file to unzip command. How to unzip a file?

Decompress Zip Files

Decompress Zip Files

Extract Specific File From Zip Archive

We can decompress specific file from a zip archive like below

Extract Specific File From Zip Archive

Extract Specific File From Zip Archive

This will extract only files ends with rc

Unzip with Tar

We can use tar command in order to decompress zip files. We just provide xvf option to the  tar command. We will unzip file named myBackup.zip

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/zip-unzip-files-linux/
PINTEREST
PINTEREST
INSTAGRAM

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)