Closed stottj closed 1 year ago
Ex 1
gzip test.txt
Ex 2
gzip -d test.txt.gz
Ex 3
tar -czvf archive.tar.gz test.txt test1.txt test3.txt
Ex 4
tar -xzvf archive.tar.gz
Common problems: Check and make sure the file is .gz before trying to decompress it. Getting error while decompression might mean you dont have enough disk space. If you get unknown compression method your gzip might not support the cpomression method.
Looks good to me, these utils are really common but I still never remember the correct tar
syntax and look it up each time.
Summary
Learn how to compress and decompress files using various utilities like
tar,
gzip,
zip,
andunzip
on a Unix-like operating system.Description
Objective: Master the techniques for compressing and decompressing files to save disk space and facilitate easier file transfers.
Scope:
gzip
andzip
gunzip
andunzip
tar
Learning Tasks
Compressing Files:
gzip
andzip
to compress individual files or directories.Decompressing Files:
gunzip
andunzip
for decompressing files back to their original state.Archiving with
tar
:tar
command and various flags.Best Practices:
Hands-on Practice:
gzip.
gunzip.
tar
with multiple files.Troubleshooting:
Learning Goals
Priority