#1  
Old 22nd May 2005, 13:49
torben torben is offline
Junior Member
 
Join Date: May 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Create .tar.gz

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?

Torben
Reply With Quote
Sponsored Links
  #2  
Old 22nd May 2005, 20:43
tylerdurden tylerdurden is offline
Junior Member
 
Join Date: Apr 2005
Posts: 16
Thanks: 0
Thanked 1 Time in 1 Post
Default

Code:
tar -pczf name_of_your_archive.tar.gz /path/to/directory
tyler
Reply With Quote
  #3  
Old 16th October 2013, 13:00
kshitiz kshitiz is offline
Junior Member
 
Join Date: Oct 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default Simple Answer

If you type

tar --help

on command line, it will show you all the options that you are allowed to do.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:40.


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