Log in

View Full Version : Compressing files


Skavenger
04-26-2007, 07:33 PM
Hi, I want to know if there is a way to compress to a zip file an entire folder using cPanel, or using SSH access, if so, how is the command to compress a folder? my hosting use linux

Thank you

Zachery
04-26-2007, 07:45 PM
Via ssh,

gzip file.extension

Skavenger
04-28-2007, 03:10 PM
But how do I compress an entire folder? What command should I use?

Zachery
04-28-2007, 05:40 PM
Tar and gzip the folder in one command.

tar cvfx folder.gz foldername

Skavenger
04-29-2007, 08:39 AM
I get error
tar: You may not specify more than one `-Acdtrux' option
:S