Command Line

How To: Zip Files In Lubuntu

Today’s article will be relatively short and fairly easy as we talk about how to zip files in Lubuntu. This seems like a nice and easy article and something folks might want to know. If you’re in this category, by all means, read on!

NOTE: This is written for Lubuntu, but will work in other distros. I’m just trying something new, specifically doing some distro-specific articles to see how well they do.

If you’re unfamiliar with Lubuntu, it’s a lovely distro that’s fairly lightweight and easily configurable. Lubuntu is an official Ubuntu flavor. The purpose of Lubuntu has changed. The focus has changed from being lightweight (which it still is) to getting out of your way. You can read some of the history on Wikipedia’s Lubuntu article.

I’m biased because I’m an official Lubuntu member. I’m on the team that brings you this distro and have written a few Lubuntu-specific articles.

Disable Window Grouping In Lubuntu
Change Snap Application Privileges In Lubuntu
Change Your DNS Servers To Google’s In Lubuntu

(There are more, of course!)

I’m definitely a fan.

Anyhow, we’ll be learning to zip files in Lubuntu today. When you zip a file, you compress the file and make a new file. Some files don’t compress while other files (such as plain text files) can be compressed quite a bit. There are many different compression tools, methods, and algorithms. I’ve covered some RAR stuff in the past, for example.

Zip Files In Lubuntu:

We’ll be using the zip application in the terminal to zip files in Lubuntu. You can compress files graphically, but we’ll be doing this in the terminal. You can do almost anything in the terminal. So, let’s start by pressing CTRL + ALT + T to open the terminal.

The tool we’ll be using is the zip application, defined simply as:

zip – package and compress (archive) files

For the record, the zip application should be installed by default. I don’t like to assume the default is still true, so I’ll also explain how to install the application, also in the terminal.

You can install the zip application with this command:

sudo apt update
sudo apt install zip

You can check the man page for zip with this command:

man zip

To zip a file in Lubuntu, you would run this command:

zip <zip_file_name>.zip /path/to/file

If you want to zip multiple files in Lubuntu, you can just add them to the command by tagging them on the end. That looks like this:

zip <zip_file_name>.zip /path/to/file1 /path/to/file2 /path/to/file3

See? It’s just that easy to zip files in Lubuntu – specifically in the terminal. Of course, this is true for all sorts of other distros. The only thing that would change would be the process for installing the application should it not be installed by default.

Closure:

Yup… I told you that this would be a quick and easy article. I will actually (probably) cover more of this very topic. It’s a way to keep fresh articles on the site, by being distro/distro-family specific. Yeah, I know that it’s more convenient to have big articles that cover a lot of information. At the same time, writing them all is a lot like work – largely because you start running out of ideas for new articles.

By the way, I could so use a break. You should write an article for me! In fact, you should write a whole series of articles!

Thanks for reading! If you want to help, or if the site has helped you, you can donate, register to help, write an article, or buy inexpensive hosting to start your site. If you scroll down, you can sign up for the newsletter, vote for the article, and comment.

KGIII

Retired mathematician, residing in the mountains of Maine. I may be old and wise, but I am not infallible. Please point out any errors. And, as always, thanks again for reading.

Recent Posts

Is Your Storage Drive An SSD Or An HDD?

Today's article aims to answer a simple question, simply is your storage drive an SSD…

2 days ago

Monitor System Resources With “Resources”

Today is one of those days when I'd like to introduce you to new software…

4 days ago

Short: The Halt Command

Today's article is intentionally short because we're simply going to learn about the basics of…

6 days ago

Installing Flatpaks In Linux

Today we're going to have a pretty easy article where you'll learn about installing Flatpaks…

1 week ago

A Quick Look At The Shutdown Command

This is going to be just a quick article about a command many of you…

1 week ago

Setting Up Coding Environments on Linux for Educational Use

With so many strong attributes, such as robustness and flexibility, Linux stands as a powerful…

2 weeks ago