Search⌘ K

Zipping a File in Bash

Explore how to use Bash's tar and gzip commands to create compressed archives, list contents, and extract files. Understand key options for efficient file manipulation and saving space.

tar

Definition:

Tar — short for tape archive is used to convert files in tar format and archive them in a file. An archive format is widely used to store multiple files and transfer them to another system. They can be extracted, once recieved on the second end. We use Tar command for all these purposes.

Syntax:

tar [option(s)] [archive_file_name] [file_name(s)]

Options:

The tar command is one of those rare commands which ...