18 Tar Command Examples in Linux

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

Ravi Saive

Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

Host Your Own Website at $97 Discount + One Free Domain Using our Promo Code 'Tec97' (Enter this code during Signup) - Signup with DreamHost Now!

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

You may also like...

63 Responses

  1. jagadish says:

    nice explanation……..

  2. Gabriel S says:

    I’ve got this bookmarked! It’s really helpful – thanks for posting this. I refer to it constantly when I’m SSHing and moving WordPress installations around!

  3. Swati says:

    Hi Ravi,
    I am trying to create tar file at AIX server using the below command:
    tar cvf temp.tar temp/
    but its just giving me tar: and create 0 byte tar file.
    I tried diffrent options like tar -cvf, tar cf, tar -cf, temp/,temp, complete path but for all I m getting same reposne.
    Please help :(

  4. MADHU says:

    Good read, useful information . I also would like to understand how we can overwrite the file in the directories if already exist.

  5. Dev says:

    Thanks guys,
    This is really very helpful for all archiving formats :)

  6. Ahmed says:

    Salaam Ravi,

    Thanks for this valuable tricks and tips, personally it helped me a lot.
    By the way I am new bie to linux.

    Ahmed Somali

  7. Franklin says:

    Note to the author:

    some of the filename is you tar examples look like adult photos to me (e.g. Miley**photo101203.flv). Just want to let you know in case that was not on purpose…

    Thanks for the helpful tutorial.

    • Ravi Saive says:

      @Franklin,
      What a finding….:) even I don’t know that I’ve used such images in my tar command examples. Actually I handle one large photo site in our media company. I think I tried those commands on that server and taken those images as example for tar command…..

  8. langacker says:

    Thanks! Great tutorial for linux beginner!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Join Over 62000+ Linux Users
  1. 48100
  2. 2222
  3. 11697
Enter your email to get latest Linux Howto's