Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have setup FTP on Redhat RHEL 4, I want to copy a gz file from a windows machine. The thing is i cant unzip it once its on the linux box, its says its corrupted.

But i can open it ok on windows, i thnk its being corrupted during the copy, what could be wrong?

share|improve this question

You probably forget to switch the transfer mode to binary. The UNIX/Linux systems handles end of line different from Windows/DOS systems. The FTP do a conversion if the transfer mode is ASCII. You should read the manual of your FTP kliens how to switch to binary mode. If you are using a command line version you should use the command binary or bin.

share|improve this answer
thanks man!!!! you saved me – Ngetha Oct 6 '09 at 12:08
@ngetha you should accept the answer as a "thank you".. – rkthkr Oct 6 '09 at 12:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.