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
  4.  
  5. # UNZIP IT
  6. tar xzf archivename.tar.gz

Report this snippet


Comments


You need to login to view comments.