0

I am trying to extract a specific file from a tar.gz file. This is the code I used:

tar -zxvf Laura.tar.gz Laura/2021-10-22_16.52.10_pWOX5-YFP_x_membraneRed_Movie1/DC_CROPPED_h5/DC_CROPPED.h5

Laura.tar.gz is my tar.gz and DC_CROPPED.h5 is the file that I want to extract (its directory is the one that appears in the code).

Why am I not getting feedback as I run the code? I feel like verbose (-v) is not working.

I am doing all of this in Putty from windows.

9
  • 1
    Did you check that the file and path are correct? You can do it with tar -tzvf Laura.tar.gz|grep DC_CROPPED.h5 Mar 28 at 12:45
  • I just tried this and I dont get anything back. Should I wait longer? Mar 28 at 12:55
  • Did you get the prompt after executing? Mar 28 at 12:58
  • I did not get any propmt. However, while the tar.gz was running, i tried this: doing ctrl+z and it said it stopped and then I did bg and I also got propmt. Mar 28 at 13:03
  • wait for result Mar 28 at 13:04

1 Answer 1

0

The structure of a tar file is just a long list of ${file_metadata}${file_content} so it still needs to find the specific file you're looking for in the archive, which means sifting through it. Depending on the size of the archive and the performance of the storage it's on, this can take a while.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .