I have a file called myfile.dat.gz that I need to decompress. I have been trying gzip -d myfile.dat.gz, but this results in the error gzip: myfile.dat.gz: invalid compressed data--format violated.
These are the steps that were taken to get my the file:
- Compress myfile.dat on a different server using gzip myfile.dat
- Use sftp to download compressed file to local
- Compressed file placed on shared drive
- I download file from shared drive and try to decompress on different server
The person who sent the file was able to successfully decompress the file using gzip -d myfile.dat.gz on the source server, so something seems to have screwed up the format either during sftp or when placed on the shared drive. I've confirmed file is in binary format on my side. Any ideas on what could have happened/how to resolve?
shasum myfile.dat.gz
ormd5sum myfile.dat.gz
)