tar
tar commands:
Create a tar file
tar -cvf out.tar dirname/*
Extract a tar file
tar -xvf dirname/*
Extract a tar file inside .tgz
gunzip file.tgz
tar -xvf file.tar
or
gzip -dc file.tgz | tar xf -
Create a tar excluding a sub-directory
tar -cvf output.tar --exclude sub-dir-name *
Problem
tar: directory checksum error
Solution
Native tar is located at /usr/bin/tar.
Try using GNU tar located at /usr/local/bin/tar
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home