Create .tar.gz

Discussion in 'Technical' started by torben, May 22, 2005.

  1. torben

    torben New Member

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

    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
     
  2. tylerdurden

    tylerdurden New Member

    Code:
    tar -pczf name_of_your_archive.tar.gz /path/to/directory
    tyler
     
  3. kshitiz

    kshitiz New Member

    Simple Answer

    If you type

    tar --help

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

Share This Page