Published on January 10, 2017 by ProgrammingKnowledge

tar — The GNU version of the tar archiving utility

tar [-] A –catenate –concatenate | c –create | d –diff –compare |
–delete | r –append | t –list | –test-label | u –update | x
–extract –get [options] [pathname …]

Tar stores and extracts files from a tape or disk archive.

The first argument to tar should be a function; either one of the letters Acdrtux, or one of the long function names. A function letter need not be prefixed with “-”, and may be combined with other single-letter options. A long function name must be prefixed with –. Some options take a parameter; with the single-letter form these must be given as separate arguments. With the long form, they may be given by appending=value to the option.

Leave a Reply

2 Comments on "Linux Command Line Tutorial For Beginners 36 – tar command to Compress and Extract Files"

Notify of

Somsubhra Das
Somsubhra Das
10 days 22 hours ago

how to extract or create .zip files?

Clavo Destirious
Clavo Destirious
5 months 11 days ago

make more sir, highly appreciated