Tar xfzv does not extract.


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Tar xfzv does not extract.
# 1  
Old 05-30-2019
Tar xfzv does not extract.

I used tar cfvz to create a tar.gz file
I am using tar xfvz to try and open the tar.gz file and nothing happens.
Thanks for the help in advance.

Last edited by rbatte1; 06-03-2019 at 09:10 AM..
# 2  
Old 05-30-2019
Quote:
Originally Posted by eklinux
I used tar cfvz to create a tar.gz file
I am using tar xfvz to try and open the tar.gz file and nothing happens.
Thanks for the help in advance.
This is way too vague of a request.
Define "nothing happens" and share your tar cfvz.
This User Gave Thanks to vgersh99 For This Post:
# 3  
Old 05-30-2019
Lose the "z"
tar xf somefile.gz

assuming Linux, tar figures out what decompression to use.
These 2 Users Gave Thanks to jim mcnamara For This Post:
# 4  
Old 05-30-2019
Quote:
Originally Posted by vgersh99
This is way too vague of a request.
Define "nothing happens" and share your tar cfvz.
I created a number of files and then created a tar.gz file.
According to the documentation and also video on Linux Academy after
using tar cfzv it should be creating both a zipped file and a tar file.
Only the tar.gz file shows.
In addition no files are extracted either.

Last edited by rbatte1; 06-03-2019 at 09:11 AM..
# 5  
Old 05-30-2019
'zipped' is not really an expression used in the unix world. Zip files are Windows orientated.

The tar 'c' switch 'creates' a tar file.
The tar 'z' switch 'compresses' that file when it's done (giving rise to a tar.gz file). Just one file.

It is true, however, that some Windows based utilities for 'zip' files can, indeed, read (unzip) unix created files like tar.gz if they are transfered into a Windows environment.
Don't get confused.

And just to add to all that.....some Unix/Linux OS's implement a 'gzip' utility which can manage tar format files.
# 6  
Old 05-30-2019
Also, if you for some reason do need both files (a tar file and a compressed tar file) you could run tar with the 'c' option but not the 'z' option which will create you a tar file.

You could then take a copy of that file before running compress on the tar file converting it to a tar.gz file.

Hope that's clear.
# 7  
Old 05-30-2019
Quote:
Originally Posted by vgersh99
This is way too vague of a request.
Define "nothing happens" and share your tar cfvz.
Quote:
Originally Posted by hicksd8
'zipped' is not really an expression used in the unix world. Zip files are Windows orientated.

The tar 'c' switch 'creates' a tar file.
The tar 'z' switch 'compresses' that file when it's done (giving rise to a tar.gz file). Just one file.

It is true, however, that some Windows based utilities for 'zip' files can, indeed, read (unzip) unix created files like tar.gz if they are transfered into a Windows environment.
Don't get confused.
X for extracting
F for file
Z for zipped this is according to Linux Academy
V for verbose
I'm just reiterating what was shown on LA video
I looked up man tar and you are correct that it's compress and not zip.
zip also compresses and archives like Z.
The issue is that the files don't uncompress.
According to the video it's supposed to create 2 files 1.)tar and 2.) tar.gz in addition to the files being uncompressed.
All I'm getting is tar.gz
no tar
no files uncompressed
just tar.gz

--- Post updated at 07:39 PM ---

Also, if you for some reason do need both files (a tar file and a compressed tar file) you could run tar with the 'c' option but not the 'z' option which will create you a tar file.

You could then take a copy of that file before running compress on the tar file converting it to a
Hope that's clear
The instructor used all 4 flags
cfzv so I'm not sure what to think.
He started out with just creating the tar file and then he compressed the tar file in two separate steps.
He then demonstrated how it could be done in one step with all 4 flags.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Tar extract Z file

I was looking at this tutorial for tar extract Z file. Is there a reason why this did not work? I checked my man pages and it had a -Z option. tar -xZvf /opt/Nimsoft/nimldr.tar.Z tar (child): compress: Cannot exec: No such file or directory tar (child): Error is not recoverable: exiting now... (2 Replies)
Discussion started by: cokedude
2 Replies

2. UNIX for Dummies Questions & Answers

Do I need to extract the entire tar file to confirm the tar folder is fine?

I would like to confirm my file.tar is been tar-ed correctly before I remove them. But I have very limited disc space to untar it. Can I just do the listing instead of actual extract it? Can I say confirm folder integrity if the listing is sucessful without problem? tar tvf file1.tar ... (1 Reply)
Discussion started by: vivien_chu
1 Replies

3. Linux

extract glibc-2.3.2.tar.tar

Hi, how can I extract glibc-2.3.2.tar.tar file ? I used tar -xf but does not work. Thank you. (4 Replies)
Discussion started by: big123456
4 Replies

4. UNIX for Dummies Questions & Answers

tar extract to new path

I need to extract a file,which contains the path to a new path. sample tar file tar -tfv class.tar | grep client -rw------- 0/1 99 Jan 22 12:46 2004 /usr/openv/netbackup/db/class/mariner/clients -rw------- 0/1 102 Sep 25 11:33 2007... (1 Reply)
Discussion started by: jouuu
1 Replies

5. UNIX for Dummies Questions & Answers

Error when tar extract

I've got this Files.tgz containing Fruits/Apple.txt Drinks/Soda.txt Drinks/Pepsi.txt I would like to extract all files/directories with pattern "Fruits". So, what I did was tar -xvf File.tgz `tar -tf Files.tgz | grep 'Fruits'` However, output is:- Files/Fruits... (8 Replies)
Discussion started by: percivalwcy
8 Replies

6. Shell Programming and Scripting

extract one file form .tar.gz without uncompressing .tar.gz file

hi all, kindly help me how to extract one file form .tar.gz without uncompressing .tar.gz file. thanks in advance bali (2 Replies)
Discussion started by: balireddy_77
2 Replies

7. UNIX for Dummies Questions & Answers

tar. I can't extract

Hi, I am Nico. I have a tarball that i can't extract. I have this file: FlussiIbox.20060215.tar when i write "tar tf FlussiIbox.20060215.tar" the output is: /u01/USCITA/jobs/SUNRISE/output/IBOX.counter.20060212.dat.gz /u01/USCITA/jobs/SUNRISE/output/IBOX.counter.20060213.dat.gz... (1 Reply)
Discussion started by: volleyboy
1 Replies

8. UNIX for Advanced & Expert Users

extract from TAR

Hi, when I extract a TAR archive by tar -xf file.tar the file.tar file stays on disk. Then I need two time the disk space. How can I avoid that ? How to ask not to keep file.tar ? Many thanks. (8 Replies)
Discussion started by: big123456
8 Replies

9. UNIX for Dummies Questions & Answers

TAR (Extract with subfolders)

Hi! I've uploaded a .tar file (created with Windows) containing my homepage to my webserver. Now I'd like to extract the file on the server. I can do that with SSH. BUT:: If i enter this command: tar -xf homepage.tar only the files in the root directory of the file get extracted.... (2 Replies)
Discussion started by: roberthawke
2 Replies

10. UNIX for Advanced & Expert Users

extract from tar backup

Hi All, I have created a tar file by giving the below command : all files of directory : /Accounts/2001/10/26 $tar -cvf Act26.tar /Accounts/2001/10/26 I copied into another server and given the following command: $tar -xvf Act26.tar then permision denied message came due to the... (3 Replies)
Discussion started by: krishna
3 Replies
Login or Register to Ask a Question