Introduction
Sometimes you want to save space when storing or sending files. The tar command can bundle files together and compress them to make the size smaller. This helps when you want to move many files as one package or save disk space.
When you want to create a backup of a folder and reduce its size to save disk space.
When you need to send multiple files over the internet as a single compressed file.
When you want to archive logs daily and keep them compressed to save storage.
When you want to extract a compressed archive you received from someone else.
When you want to compress files using different compression methods like gzip, bzip2, or xz.