Using the ZIP command on Linux

Spread the love
zip is used to compress the files to reduce file size and also used as file package utility.

Create TAR file :-

=> tar -cvf dir.tar dir   
    it makes the compressed file of dir with new name.tar

Compress TAR :-
=> tar -xvf dir.tar
    it extracts the dir.tar to orig of it’s dir (come back)

Create a ZIP file :-

=> zip -r etc.zip /etc
    it makes the compreesed file of /etc with name etc.zip

UnZIP file :-

=> unzip etc.zip
    it unzip the file etc.zip with its origin

==========================More=============================

=> gzip -v dir/file    zip the dir/file
   
=> gunzip dir.gz    unzip the gzip dir/file

=> bzip2 -v dir/file    zip the dir/file

=> bunzip dir.bzp    unzip the bzip dir/file

=> evince filename    to see pdf file

Thanks,
Vishal Vyas

Linuxguru
See also  Another instance of Certbot is already running - Solved - Linux guru

0 thoughts on “Using the ZIP command on Linux”

  1. I coսlkd nott refrain frfom ϲommenting.

    Well written!

    Take a loĐľk att my homepage … 7 ƶip ccleaner free edition reviewŃ• []

    Reply

Leave a Comment