How zip the file in unix?



How zip the file in unix?..

Answer / Monark Chawla

To zip files in Unix, you can use the gzip command which creates .gz files. If you want to create a .zip file, you'll need to install 'gzip' and 'unzip' first if they aren't already installed. You can then compress a single file with 'gzip <filename>' and decompress it with 'gunzip <filename>.gz'. To zip multiple files in one go, create an archive with 'tar -czf archive.tar.gz <files>'.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix General Interview Questions

Is unix os free?

1 Answers  


What is the role of the kernel in unix?

1 Answers  


how to use grep command to list find the records of a file containg 10 different strings

5 Answers   IBM,


What is .profile unix?

1 Answers  


I want to invest in learning things that will get me good jobs in future. But wondering if Unix knowledge is something that is a MUST have or is it better to do any Data-warehouse tool (cognos, Qclik view, ETL etc..). Please suggest me.

1 Answers  


How do I run a .sh file in unix?

1 Answers  


Explain what is a fifo?

1 Answers  


Differentiate between paging and swapping?

1 Answers  


What are directories in unix?

1 Answers  


What is unix in simple terms?

1 Answers  


What are the different versions of unix?

1 Answers  


Is unix a programming language?

1 Answers  


Categories