About 70,800 results
Open links in new tab
  1. Unzipping a .gz file without removing the gzipped file

    Sep 19, 2014 · Closed 10 years ago. I have a file file.gz, when I try to unzip this file by using gunzip file.gz, it unzipped the file but only contains extracted and removes the file.gz file. How can I unzip by …

  2. How to extract specific file(s) from tar.gz - Unix & Linux Stack Exchange

    How can we extract specific files from a large tar.gz file? I found the process of extracting files from a tar in this question but, when I tried the mentioned command there, I got the error: $ ta...

  3. shell - How to download an archive and extract it without saving the ...

    I'd like instead to download and extract the archive on the fly, without having the tar.gz written to the disk. I think this is possible by piping the output of wget to tar, and giving tar a target, but in practice I …

  4. gzip - How do I use gunzip and tar to extract my tar.gz file to the ...

    You can do a single tar command to extract the contents where you want: tar -zxvf path_to_file -C output_directory As explained in the tar manpages: -C directory, --cd directory, --directory directory In …

  5. How do you extract a single folder from a large tar.gz archive?

    If you need to extract a particular folder, have a look at what's in the tar file: tar -tvf foo.tar And note the exact filename. In the case of my foo.tar file, I could extract /home/foo/bar by saying: tar -xvf foo.tar …

  6. gunzip all .gz files in directory - Unix & Linux Stack Exchange

    How about just this? $ gunzip *.txt.gz gunzip will create a gunzipped file without the .gz suffix and remove the original file by default (see below for details). *.txt.gz will be expanded by your shell to all …

  7. Extraction of .gz files contained in a folder

    Mar 20, 2015 · 25 find . -name '*.pdb.gz' -exec gunzip {} + -exec gunzip {} + will provide gunzip with many but not too many file names on its command line. This is more efficient than -exec gunzip {} \; …

  8. How do I gunzip to a particular directory? - Unix & Linux Stack Exchange

    Jul 22, 2020 · In a gzip archive, you only have one file, not multiple files, so extracting into a directory does not really make sense. If you want to place it somewhere specific, create the directory (mkdir …

  9. Extract multiple .tar.gz files with a single tar call

    This does not really answer the question of whether it's possible to extract multiple archives using a single invocation of tar. Furthermore, the user says they are already familiar with how to use for …

  10. tar extract into directory with same base name?

    Apr 23, 2015 · 20 $ tar -xf myArchive123.tar.gz --one-top-level --one-top-level [=DIR] Extract all files into DIR, or, if used without argument, into a subdirectory named by the base name of the archive (minus …