0

Hi I'm trying to open gz files on my computer (windows 10) in the terminal (MobaXterm) could some one guide me on how to do it thank you.

I've tried using gunzip file.gz and gzip -d file.gz but they don't seem to work

Genesis
  • 31
  • 1
  • 5
  • what is the output of `file file.gz`? – rsp Jun 29 '20 at 14:12
  • it gives me "gzip compressed data" – Genesis Jun 29 '20 at 14:35
  • that confrms the file type, so gunzip should be able to unzip it. if gunzip cannot unzip it, maybe it is truncated or it got corrupted by an FTP in text mode for instance? – rsp Jun 29 '20 at 14:47
  • i ran gunzip file.gz and it runs fine but I'm trying to open it up in IGV but it still says the file is zipped. How do I know if the file is truncated or got corrupted. – Genesis Jun 29 '20 at 15:12
  • after gunzip ran, you can use the `file ` command on the unpacked file to see what file type it is. is it possible it got zipped twice? – rsp Jun 29 '20 at 15:57
  • It appears that it did get zipped twice how am I able to undue that? – Genesis Jun 29 '20 at 16:35
  • unzip it twice, you might have to rename it in between to give it the correct extension. – rsp Jun 29 '20 at 17:18

0 Answers0