HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Technical (http://www.howtoforge.com/forums/forumdisplay.php?f=8)
-   -   Create .tar.gz (http://www.howtoforge.com/forums/showthread.php?t=96)

torben 22nd May 2005 13:49

Create .tar.gz
 
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 20:43

Code:

tar -pczf name_of_your_archive.tar.gz /path/to/directory
tyler

kshitiz 16th October 2013 13:00

Simple Answer
 
If you type

tar --help

on command line, it will show you all the options that you are allowed to do.
:confused:


All times are GMT +2. The time now is 18:39.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.