compressing and uncompressing folder

General support questions
Post Reply
knzzz
Posts: 157
Joined: 2017/02/25 12:41:42

compressing and uncompressing folder

Post by knzzz » 2018/02/21 02:38:33

Hi Team,

What a best method to compress a folder and extract it latter

Regards
Kanna

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: compressing and uncompressing folder

Post by hunter86_bg » 2018/02/21 05:01:02

You can use 'gunzip/gzip' or 'bunzip2/bzip2' with default instalation.
If you need faster compression (multithreaded) , you can usse pbzip2 from epel.

For details, check the man page.

knzzz
Posts: 157
Joined: 2017/02/25 12:41:42

Re: compressing and uncompressing folder

Post by knzzz » 2018/02/21 08:03:30

I tried gzip of a folder , it doesnt not gzip the subfolder . So how to compress the folders and subfolders

stevemowbray
Posts: 519
Joined: 2012/06/26 14:20:47

Re: compressing and uncompressing folder

Post by stevemowbray » 2018/02/21 09:02:56

Use the -r option. I suggest you read the man page.

Post Reply