csland.com

Independant Computer Consultant

Software Consulting, Development, Strategy, and Programming
Home >  Use tar to compress and uncompress directory or file

Use tar to compress and uncompress directory or file

06/27/2010
5911 hits
      Compress (gzip) and package (tar) the directory myfiles to create myfiles.tar.gz:
      
      $ tar -czvf myfiles.tar.gz myfiles
      
      Uncompress (gzip) and unpack compressed package, extracting contents from myfiles:
      
      $ tar -xzvf myfiles.tar.gz

[06/27/2010, 04:46]

References

CSLand.Com © 1996-2009. All Rights Reserved