Create tar.gz

Create tar.gz

Postby cccp » Tue Aug 26, 2008 1:53 pm

I'm sorry if this is a stupid question but I'm a total noob...

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?

User avatar
cccp
Newbie
Newbie
 
Posts: 35
Joined: Mon Apr 30, 2007 10:31 am

Re: Create tar.gz

Postby Darwin » Tue Aug 26, 2008 1:56 pm

To tar a directory type the following code into terminal

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

to untar type

tar -xzf name_of_your_archive.tar.gz

Saludos

User avatar
Darwin
Full Member
Full Member
 
Posts: 111
Joined: Mon Oct 09, 2006 11:16 am
Location: Bradenton, FL


Return to Linux

Who is online

Users browsing this forum: No registered users and 0 guests

cron