Discussion Locked

How to compress file or folder on linux

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi ,
I am using Redhat Linux 9.0...can anyone help me how to compress the file as well as folder in linux..also how to uncompress the same..

Thanks in advance for your help !!

Always,
Vengadasalam.

5 replies

by raymond wong

Use "tar cvpzf " to compress a folder including its contain.
The folders & files will be compressed into 1 file.
To uncompress use "tar xvzf ", destination folder will be auto created.

To compress 1 single file use "gzip ".
to uncompress, use "gunzip ".

This discussion is closed to new replies.