What you actually do when you untar something.

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 just 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

Talk CSS

FrontEnders - Web Performance

Sharing some of my thoughts on a FrontEnders meetup on the topic of Web Performance

Conferences

Tips for how to ask for time off to attend conferences

Asking for time off to attend a conference can be nerve-racking, these tips will get you closer to attending the conferences you're interested in.