Linux tar command tutorial

Video is ready, Click Here to View ×

This is the first real video tutorial/demo for climagic on YT. It demonstrates the use of the tar command for creating, extracting and viewing the contents of a tar file or compressed tar file. If you are interested in Unix, Linux or the command line, you should check out climagic on twitter and

The title of this video previously was “Beginner level introduction to using the tar command in Unix/Linux”


  1. Thanks for the video, it was really helpful. My question is i try to update a file using tar -ztvf files.tar.gz i but the result was showing as duplicates files. i just want to know how i can update my file using my tar ball and it will show as a single result and not duplicate result

  2. Great video Sir. How do I extract a SPECIFIC file from a tar file? I copied my tar file to the /tmp directory, cd to it, and run this command

    tar -xvf etc1.tar resolv.conf

    And get this error message:

    tar: resolv.conf: Not found in archive
    tar: Exiting with failure status due to previous errors

  3. Always endeavoring to learn more about the command line as well as being a Linux user myself, i appreciate your videos and encourage you to continue. Many people feel that the CLI is old technology that should be thrown away with yesteryears trash. Viewing your videos along with those from MetalX1000, reinforces my belief that
    however old it, it`s still in COMMAND!

  4. There is actually an option called -C in tar that allows you to specify a directory to untar too. Its a little tricky to use because if you're like me and don't normally use a – in the options, you have to specify -C after the tarball name.

    Its funny that you suggest Ctrl-a and Ctrl-e since Ctrl-a is actually the next item in the queue set to go out. I realized that I was putting too much emphasis on commands and forgetting to mention all the editing functionality that is useful.

  5. Nice tutorial. In case you don't want the files unpacked in the same location as the archive, is there a way to specify a different directory when you extract the files? Also, you can use Ctrl-a and Ctrl-e to move to the beginning and end of the command in Bash. Sometimes useful for very long commands.

Leave a Reply

Your email address will not be published.