Tar xfzv does not extract.


 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Tar xfzv does not extract.
# 8  
Old 05-30-2019
Yes, well, I'm not clairvoyant and my crystal ball isn't working too well either. As vgersh99 said, can you please provide more detail.

Please post:

The whole command line that you used to create your tar/compressed archive file.
A listing 'ls -l' of the resulting file.
The whole command line that you are using to attempt extraction.
Can we assume extraction is taking place on the same system that created the file???? Which operating system is that?
When you say on extraction 'nothing happens' what do you mean? No error message? Just hangs with no activity? Or what?

Please help us to help you here.
This User Gave Thanks to hicksd8 For This Post:
# 9  
Old 05-30-2019
Quote:
Originally Posted by hicksd8
Yes, well, I'm not clairvoyant and my crystal ball isn't working too well either. As vgersh99 said, can you please provide more detail.

Please post:

The whole command line that you used to create your tar/compressed archive file.
A listing 'ls -l' of the resulting file.
The whole command line that you are using to attempt extraction.
Can we assume extraction is taking place on the same system that created the file???? Which operating system is that?
When you say on extraction 'nothing happens' what do you mean? No error message? Just hangs with no activity? Or what?

Please help us to help you here.
Sorry about that.
I thought that I had written Ubuntu.
I used gunzip -k and that worked for 2 separate files.
I was just trying to follow along with the LA video.
I'm a complete newbie so I don't know what is correct or not correct at this point.
If you could suggest a better video source for learning Unix that would be great.

Last edited by eklinux; 05-30-2019 at 05:04 PM.. Reason: error
# 10  
Old 05-30-2019
eklinux,
please post the complete cli that you used to create the myFile.tar.gz file.
Also post the output of tar tvf myFile.tar.gz using code tags.
Also provide the cli you to untar commend you use to extract the archived file from myFile.tar.gz that's "not working".
# 11  
Old 05-31-2019
cfvz where 'f' is followed by a filename, .ie 'vz'.
# 12  
Old 05-31-2019
@dodona.....

I find your post confusing. 'vz' is NOT the filename on this command line. v and z are switches as in:
  • c=create
  • f=file <name of archive to be created>
  • v=verbose
  • z=compress

Theoretically, there is nothing wrong with what the OP is trying to do; create an archive and then extract it, but there's obviously something wrong syntactically or some such and until the OP provides the command lines, etc that I and vgersh99 have requested, I'm afraid we're all in the dark.
# 13  
Old 05-31-2019
@hicksd, I had the impression @dodona said that in a lightly humoristic way to make clear that order of the switches is wrong, i.e.

tar zcvf instead of tar cfvz
tar zxvf instead of tar xfvz

And that the result of doing that is using a file named vz

Last edited by Scrutinizer; 06-01-2019 at 03:12 AM..
# 14  
Old 06-01-2019
Linux examples:

Code:
/tmp#  tar cf vz /tmp
tar: Removing leading `/' from member names
tar: /tmp/vz: file is the archive; not dumped
tar: /tmp/.code-server0.8680082051055391: socket ignored
tar: /tmp/.code-server0.08925957450408695: socket ignored
tar: /tmp/.code-server0.407659618765559: socket ignored
tar: /tmp/.code-server0.7694071641881257: socket ignored
tar: /tmp/.code-server0.17162571589864717: socket ignored
tar: /tmp/.code-server0.2378604208841144: socket ignored
tar: /tmp/.code-server0.5212314932242741: socket ignored
tar: /tmp/.code-server0.5881111008803521: socket ignored

creates file vz

Code:
/tmp#  tar cfvz /tmp
tar: Cowardly refusing to create an empty archive
Try 'tar --help' or 'tar --usage' for more information.

Error...
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