Archive files on your Linux desktop with Ark for KDE

Create, examine, and expand compressed archives on KDE.
22 readers like this
22 readers like this
Why the operating system matters even more in 2017

Internet Archive Book Images. Modified by Opensource.com. CC BY-SA 4.0

When I finish with a project, I often like to take all the files I've created for the project and put them into an archive. It not only saves space, but it gets those files out of my way, and prevents them from turning up as results when I use find and grep to search through files I consider current. Once files are in an archive, they're treated as a single object by your filesystem, which means that you can't browse them the way you can a normal folder. You could unarchive them, or you could open a terminal and run the appropriate archive command, such as tar, to list the contents of the archive. Or you can use an application like Ark to list, preview, modify, and manage your archives.

Install Ark on Linux

If you're running the KDE Plasma Desktop, you already have Ark installed, but if not then it's available from your package manager. On Fedora, Mageia, and similar:

$ sudo dnf install ark

On Debian, Elementary, and similar:

$ sudo apt install ark

You can install it as a Flatpak from Flathub, too.

Create an archive

The best way to get comfortable with archives is to create one for yourself, and then explore it. All of this can be done with just Ark.

First, launch Ark from your application menu, and then go to the Archive menu and select New.

Give your archive a filename, accept the default compression settings, and save it to your home directory.

Ark won't create an empty archive, but after you've set a name and location, Ark is poised to create an archive as soon as you add a file to it.

To add a file to your soon-to-be archive, just drag and drop a file into the Ark window.

There are two benefits to archiving: consolidation and compression. By adding files to the archive, you've consolidated files into one place. They exist in the archive now, so you can throw the original copies in the trash if it's part of your goal to get files out of the way.

To see how much disk space you've saved by compressing your files, go to the Archive menu and select Properties. This shows you the size of the unpacked archive as well as the size of the packed archive, and a lot of other useful metadata.

There's a lot more that Ark can do, but for now close Ark as if you were finished. Your achive now exists in the location where you saved it (in this example, it's example.tar.gz in my home folder.)

Viewing files in an archive

Any archive can be opened in Ark, just as if it were a normal folder. To open an archive in Ark, just click on it in your file manager, or right-click on it and select Open with Ark.

Once the archive is open in Ark, you can perform most actions you could do from a file manager, including removing files, adding new files, previewing the contents of a file, and more.

Removing a file from an archive

Sometimes you put a file into an archive you don't need. When you want to remove a file from an archive, right-click on the file and select Delete.

Adding files to an archive

Adding a file to an archive is even easier. You can just drag and drop a file from your file manager into Ark. Alternately, you can select Add Files from the right-click menu in Ark.

Extracting just one file from an archive

When faced with an archive, many people just unarchive the entire thing and then fish for the one or two files they actually need. For small archives, that's fine, but for big archives that takes time and disk space, even if only temporarily.

With Ark, you can extract only the files you need by dragging them from the Ark window to the destination you want to save them to. Alternately, select Extract from the right-click menu.

Previewing files in an archive

You don't always need to extract a file. If you just need to refer to a file quickly, Ark may be able to show you a preview of the file without extracting it to your drive.

To preview a file, double-click on it in Ark.

Archive it

Managing archives on a Linux desktop is easy and intuitive. Ark is a great archive tool, and many other Linux desktops have similar tools, so even if you're not using Ark you might find something similar to it equally as useful. For me, archiving has been an important part of keeping my files organized, and conserving disk space. As for Ark, it makes interacting with those archives convenient.

What to read next
Tags
Seth Kenlon
Seth Kenlon is a UNIX geek, free culture advocate, independent multimedia artist, and D&D nerd. He has worked in the film and computing industry, often at the same time.

2 Comments

Very nice article, great for some people new to GNU/Linux. Although I find it strange when you say "Ark for KDE". KDE is community (group of people) who created Ark. So it would be better to say "Ark by KDE" or "Ark from KDE". The same problem is with the phrase "on KDE". Just doesn't make sense.

Ark is both by and for the KDE community. It was written by a KDE community member, and many KDE community members use it.

It's the same turn of phrase I would use were I to say "I have a great video editor *for* open source users." The video editor I am referring to also happens to be *by* open source users (who are developers).

I tend to use "on" only when referring to the Plasma Desktop. For instance, I might write "you can use Ark on the KDE Plasma Desktop, as well as on GNOME."

The more I read about technology, the more I realise there are subtleties around prepositions. I wonder if they're regional. For instance, in New York you stand "on line" when you're in a queue, but everywhere else I've ever lived in the US, you stand "in line."

I try to strike a balance in how I refer to KDE as the community and as a descriptor of specific technology, and whether applications are for, by, on, in, under, on top of, or behind.

In reply to by Jure Repinc

Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License.