Tar is a file format that allows you to archive files and directories while preserving flags and other file information. Tar is also the name of the Unix utility that manipulates these files and is also popular for being notoriously enigmatic.
Did you know? Tar, the name, is derived from “tape archive”.
But Ridwan, I don’t store my files on tapes. Do I need
Well, if you need to ask that question (and don’t care about helping Rob disarm the bomb), then the answer may just be “no”. But if you spend enough time in Unix-like systems, you are bound to come across a “.tar” file eventually.
Just like most other commands,
tar takes a bunch of options, followed by some arguments.
You can create a tar archive by executing
$ tar cf archive.tar mario.txt luigi.txt peach.txt
The “c” tells
tar to create an archive with the files “mario.txt”...