Posted By

rm1984 on 07/11/16


Tagged

file Shell Bash tar directory sh gz bz2 permissions


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

smvnet


Create a compressed TAR archive preserving permissions


 / Published in: Bash
 

Create a compressed TAR archive preserving permissions

  1. # compress
  2. $ tar -pcvzf <FILE>.tar.gz <DIRECTORY>
  3.  
  4. # uncompress
  5. $ tar -pxvzf <FILE>.tar.gz

Report this snippet  

You need to login to post a comment.