Archive Commands
💾 TAR
Flags
-c= create-x= extract-z= gzip-v= verbose-f= filename-C= extract into directory
💾 Create a .tar archive
💾 Extract a .tar archive
💾 TAR .tar file preview
🗜️ Create a TAR + GZIP .tar.gz archive
🗜️ Extract a TAR + GZIP .tar.gz archive
🗜️ TAR + GZIP .tar.gz file preview
📃 GZIP ⚠️ only single files ⚠️
Flags
-k= keep file-c= Write compressed or decompressed data to stdout>= Redirect that output into a new file
📄 Archive (Compress) to .gz file with GZIP
💡 or (same result using output redirection):
✅ Also keeps the original file.
📄 Extract (Decompress) a .gz file with GZIP
💡 or (same result using output redirection):
✅ Also keeps the original file.
🔗 ✄┈┈┈┈ ZIP
Flags
-r= Recursively include directories and files