About 92 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 both unzippe...

  2. 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 squash.zip dir1 To …

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

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

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

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

  7. How can I view gzipped files in less without having to type zless?

    I am using Ubuntu, and I would like to be able to type less compressed_text_file.gz and page the contents of the text file in uncompressed form. Is there a way to do this?

  8. 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. What is …

  9. How to uncompress a gzipped partition image and dd it directly to the ...

    Feb 2, 2021 · The image is stored on a separate disk sdb. When restoring it using gunzip -k /mnt/bkp/sda2.img.gz | sudo dd of=/dev/sda2, I noticed that the image is being unzipped into the …

  10. 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 read…