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

    Sep 19, 2014 · 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 keeping …

  2. 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 …

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

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

  4. How do I zip/unzip on the unix command line?

    Jan 28, 2011 · If you are referring specifically to the Zip file format, you can simply use the zip and unzip commands. To compress: zip squash.zip file1 file2 file3 or to zip a directory zip -r …

  5. 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 …

  6. gzip - Gunzip extract *.gz files to another location - Unix & Linux ...

    Jul 1, 2022 · never ever parse the output of ls; not even with -1: Filenames can have all kinds and numbers of line breaks in them! A for file in ${short_filename}/*; instead of the ls .. | while …

  7. How do I gunzip to a particular directory? - Unix & Linux Stack …

    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 …

  8. command line - gunzip multiple gz files with same compressed file …

    Oct 7, 2022 · I have a directory where there are multiple folders, each folder contains multiple .gz files with the same zipped file name "spark.log". How can I unzip all of them at …

  9. zip - How to extract the tar.gz file but without overwriting existing ...

    Nov 2, 2022 · This approach is useful when the same compressed file was uncompressed before and some files were either deleted or renamed - so with this n option they can retrieve them. …

  10. Decompress gzip file in place - Unix & Linux Stack Exchange

    Jan 31, 2017 · If it is a tar.gz file, you do not need to unzip - use tar -tzvf <file> to list the content and tar -xzvf <file> <path> to extract only part of the archive.