How do I zip a tar file?

Mỹ Duyên

New member
How do I zip a tar file?
Answer
To compress a directory with zip do the following:
  • # zip -r archive_name.zip directory_to_compress.
  • # unzip archive_name.zip.
  • # tar -cvf archive_name.tar directory_to_compress.
  • # tar -xvf archive_name.tar.gz.
  • # tar -xvf archive_name.tar -C /tmp/extract_here/
  • # tar -zcvf archive_name.tar.gz directory_to_compress.
 

Tìm kiếm

Back
Top