Create a compressed TAR archive preserving permissions


/ Published in: Bash
Save to your folder(s)

Create a compressed TAR archive preserving permissions


Copy this code and paste it in your HTML
  1. # compress
  2. $ tar -pcvzf <FILE>.tar.gz <DIRECTORY>
  3.  
  4. # uncompress
  5. $ tar -pxvzf <FILE>.tar.gz

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.