Linux 101: How to compress a folder from the command line with tar

At some point in your Linux journey, you’ll need to be able to compress and decompress a folder from the command line. Jack Wallen shows you how.

Image: Jack Wallen

The Linux command line is an incredibly powerful tool. From the CLI there’s next to nothing you can’t do. And although a GUI might make some of the tasks a bit easier, the simplicity of doing your work in a terminal window is about as elegant a solution as you’ll find. 

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

Take, for instance, the task of compressing a folder. Sure, you could open a file manager, right-click a folder, and select Compress. But what if you’re on a headless server? A Linux without a GUI isn’t going to offer you a point-and-click affair. So what do you do? 

You turn to the tar command, which makes short…

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.

Spread the love

Leave a Comment