Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what does -zxvf mean in tar -zxvf <filename>? [closed]

Tags:

linux

tar

I have seen on many websites commands like this what does the "-zxvf" or the similar commands stand for?

tar -zxvf <filename>  tar xvf <filename> 
like image 637
Shikhar Avatar asked Feb 21 '14 08:02

Shikhar


People also ask

What are the 3 compression methods supported by tar?

Popular tar programs like the BSD and GNU versions of tar support the command line options Z (compress), z (gzip), and j (bzip2) to compress or decompress the archive file upon creation or unpacking.

What is Z in tar command?

z – filter archive through gzip. r – append or update files or directories to the existing archive files. W – Verify an archive file. wildcards – Specify patterns in UNIX tar command.


1 Answers

  • z means (un)z̲ip.
  • x means ex̲tract files from the archive.
  • v means print the filenames v̲erbosely.
  • f means the following argument is a f̱ilename.

For more details, see tar's man page.

like image 161
Potatoswatter Avatar answered Oct 02 '22 00:10

Potatoswatter