What you actually do when you untar something

What actually happens when you untar something when you're using Linux

If you are anything like me you have typed more than your fair share of commands into Linux without actually knowing what you are passing in as parameters.  Over time you begin to learn a couple of them, but you are still largely committing strings of text to memory.

One particularly potent example of this (for me) is the tar command.  I am frequently typing tar -xvzf myFiles.tar.gz and it works well, but I have no idea what the -xvzf was actually doing.  Until today when I bothered to find out and then blog about it!

So here are the commands and what they do;

  • x - extract (makes sense, this is used because there is no untar function.)
  • v - verbose (ahh good old verbose, the one everyone knows, this will output the files tar extracts.)
  • z - filter the output through gzip (this is done as I have the .gz extension on most of my files.)
  • f - use archive file or device F

For more information either run the man on tar or visit the man page for tar.

Recent posts View all

Web DevProductivity

Keeping on top of website updates

Learn what website updates are, what they entail, why they are important, and how we can help

Freelancing

Getting the most out of your agency

Here are some tips based on years of working with, for, and as an agency on how to get the most out of any work you do.