The TAR file format is used exclusively to store large amounts of data – not compress it. TAR files are, however, usually compressed after they’re created, but they are then no longer TAR files and turn into TGZ files instead. On Linux and Unix, creating a TAR file is as simple as one and two – one being opening a Terminal or console, and two being typing in the necessary command.

Step 1: Open a Terminal

If you’re using a Linux system, press Ctrl + Alt + T to launch a fresh instance of the Terminal. Alternatively, you can also: On the other hand, if you are using a computer running on Unix, you need to:

Step 2: Type the necessary command into the Terminal

Once you have a fresh instance of the Terminal up and running on your screen, all that is left for you to do is type in the required command. The command you need to type into the Terminal in order to create a TAR file will depend on whether you want to create an archive of an entire folder and all of the sub-directories and files it contains, or an archive containing only one or more specific files. If you would like to TAR a complete directory and everything it contains, type the following into the Terminal window and press Enter: Note: In the command above, replace X with what you want the TAR file created to be named, and replace /path/to/folder with the complete path to the folder (or file) you want to be archived. For example, if you want to create an archive of the /myfiles/ folder named Files, the final command you type in will look something like this: If, on the other hand, you want to archive one or more specific files using the TAR file format, type the following into the Terminal window and press Enter: Note: In the command above, replace X with what you want the TAR file created to be named. Also, replace /path/to/file1 with the complete path to the first file you want to be archived, /path/to/file2 with the complete path to the second file you want to be included in the archive, and so on. You may add the directories to as many individual files as you want to be added to the archive – just make sure that each directory is separated with its predecessor by a space.

How to Fix Error ‘7zip Cannot Open File as Archive’ When Opening Archive FilesHow to Extract a .tar.gz File in Windows?How to Archive Emails in Outlook 2007, 2010, 2013, 2016Fix: Cab Archive is Corrupted How to Archive Files Using TAR on Linux - 69How to Archive Files Using TAR on Linux - 45How to Archive Files Using TAR on Linux - 38How to Archive Files Using TAR on Linux - 59How to Archive Files Using TAR on Linux - 58How to Archive Files Using TAR on Linux - 91How to Archive Files Using TAR on Linux - 55How to Archive Files Using TAR on Linux - 24How to Archive Files Using TAR on Linux - 34