Zip and Unzip using Command Line

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

Copy this code and paste it in your HTML
  1. # ZIP IT
  2. tar -cf archivename.tar directoryname
  3. gzip archivename.tar
  5. # UNZIP IT
  6. tar xzf archivename.tar.gz

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.