Unix Blog

Thursday, April 7, 2011

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

posted by Jayanthi Krishnamurthy @ 3:13 PM   0 Comments

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home

Newer›  ‹Older

About Me

Name: Jayanthi Krishnamurthy

View my complete profile

Posts

  • tar

Older Posts Newer Posts

Archives

Subscribe to
Posts [Atom]