How to Make a Tar.GZ File

A tar (tape archive) file is a common Linux/Unix archive format. As an archive, it simply creates one file that contains many other files. There is no compression involved. Tarfiles (or tarballs) can be quite large if there are many large files contained within it. Gzip is a compression utility for Linux/Unix, similar to the Microsoft Windows zip utility. Used in conjunction with tar, the resulting file is both archived and compressed. This is a common way in which Open Source code is delivered; it is also useful for backups.

Things You'll Need

  • Linux or Unix
Show More

Instructions

  1. Instructions

    • 1

      Open a terminal window.
      The terminal window will be found under the Applications->Utilities (GNOME) or Start->Utilities (KDE).

    • 2

      Copy the files that you want to archive into a common Directory
      cp file1 file2 Backup/

    • 3

      Create the tar archive.
      tar -cvf backup.tar Backup/
      The options are:
      c - create the file
      v - verbose (print the progress to the screen)
      f - file (the name of the tar file)

    • 4

      Use gzip to compress the file.
      gzip backup.tar

Related Searches:

Comments

You May Also Like

  • How to Unzip a Tar.GZ Unix File

    Unix-based operating systems such as Linux and Mac OS X use ".tar.gz" files to combine and compress multiple files for storage purposes...

  • How to Open a Gz File

    Open a gz file easily by using this step by step guide. This article will show you how to quickly open gz...

  • How to Unzip a GZ File in Linux

    GZ files are archive files compressed with the "gzip" program, similar to zip files. These archive files contain one or more files,...

  • How to Unzip a Tar GZ File in Linux

    The .tar.gz file format is a compressed file format that is used on Linux operating systems to bundle files together for easier...

  • How to Unzip a Tar.gz in Linux

    Tar is a file archive format that was originally used with magnetic tape storage systems. Unlike with other formats, tar archives are...

  • How to Unzip TGZ Files

    TGZ files are the Linux and Unix equivalent of ZIP files in Windows. Free utilities are available that allow you to both...

  • How to Unzip a Tar GZ File

    Tar GZ is an archiving format that is used to compress and store information. While Tar GZ files are becoming more ubiquitous,...

  • How to Install PoPToP

    PoPToP is a PPTP server for Linux with the capacity to interface with Linux and Windows computers using the PPTP protocol. Installation...

  • How to Make New Orleans Gumbo File Powder

    File powder is ground from the dried leaves of a Sassafras tree. The Choctaw Indians taught early Cajuns about file powder, which...

  • How to Create PDF Files

    PDF files are an important part to virtually any business that's online and plans to provide customers or visitors with information through...

Related Ads

Featured