What if you could carry hundreds of files like one small suitcase instead of many heavy bags?
Why zip and unzip in Linux CLI? - Purpose & Use Cases
Imagine you have hundreds of photos and documents scattered across folders. You want to send them all to a friend or save space on your computer. Doing this one file at a time feels like carrying each item separately in your hands.
Manually copying or moving many files is slow and tiring. You might forget some files or make mistakes. It also takes up a lot of space because each file is stored separately, like carrying many bulky bags instead of one compact suitcase.
Using zip lets you pack all your files into one neat, compressed package. unzip helps you open that package anytime to get your files back. This saves space and makes sharing or moving files easy and fast.
cp file1.txt file2.txt file3.txt /backup/folder/
zip archive.zip file1.txt file2.txt file3.txt
You can quickly bundle many files into one small package, making storage and sharing simple and efficient.
When sending photos from a vacation to family, you zip them into one file to email easily instead of sending dozens of separate pictures.
Manually handling many files is slow and error-prone.
Zip compresses and bundles files into one package.
Unzip extracts files quickly when needed.