Learn How to Archive Files in Linux with TAR

TAR compression
(Image credit: Pexels / OpenClipArt)

Compressing files is a quick and easy way to archive and group files. There are many occasions where archives are useful, a driver download, file backup or Linux distro download. In this how-to we’ll look at various commands to create and extract data from compressed and uncompressed archive files.

Whilst you become accustomed to these commands it’s good to work with example test files and directories and you should take extra care to ensure you are carefully following the instructions.

Latest Videos FromTom's Hardware
Jo Hinchliffe
Contributing Writer

Jo Hinchliffe is a UK-based freelance writer for Tom's Hardware US. His writing is focused on tutorials for the Linux command line. From PCBs to rowing boats to rockets, Jo tries wherever possible to integrate open source hardware and software into his projects. As such he is a keen Linux user, has authored a book on FreeCAD the open source 3D modeling software, and has published designs and tutorials across a wide range of makes.

With contributions from