PDA

View Full Version : Create .tar.gz


torben
22nd May 2005, 14:49
I'm sorry if this is a stupid question but I'm a total noob... :o

I'd like to create a tar.gz archive of a directory, and I'd like to keep the permissions of the files and directories in the tar.gz. How do I do it?

Torben

tylerdurden
22nd May 2005, 21:43
tar -pczf name_of_your_archive.tar.gz /path/to/directory

tyler