Linux 101: How to create a compressed archive of a folder from the CLI with zip

Find out how easy it is to create compressed archives from the Linux command line, using zip. Jack Wallen shows you how.

Image: Jack Wallen

Recently, I showed you how to create compressed archives from the Linux command-line using the tar command. This time I want to demonstrate the same task, but using a tool you’re probably already familiar with. The tool in question is zip, and it creates compressed zip files from whatever you throw at it. 

SEE: 5 Linux server distributions you should be using (TechRepublic Premium)

So, let’s say you have the folder TEST and you want to create the compressed file so you can send it to a colleague. Fortunately, Linux can use the zip tool, but first, you might have to install it with a command like sudo apt-get install zip -y or sudo dnf install zip -y. 

Once installed, zip…

Keep reading the full content on the TechRepublic site.

Get Free Email Updates!

Signup now and receive an email once I publish new content.

I agree to have my personal information transfered to ConvertKit ( more information )

I will never give away, trade or sell your email address. You can unsubscribe at any time.

Leave a Comment