• Courses
  • Tutorials
  • Jobs
  • Practice
  • Contests
May 10, 2022 |6.5K Views
Compressing and Archiving Files in Linux
  Share   Like
Description
Discussion

An archive is a special file that contains any number of files inside. It can be restored via special programs, for example, tar.inside.

.tar – archive files are usually not compressed.
.tar.gz – archive file compressed with gzip tool
.tar.bz2 – archive file compressed with bzip2 tool
Syntax:

tar options [archive_name.tar] files_to_archive
The tar command does not create a compressed archive, instead, it uses external utilities like gzip and bzip2.

Compressing and Archiving Files in Linux: https://www.geeksforgeeks.org/how-to-compress-and-extract-files-using-the-tar-command-on-linux/