Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 wanna transfer files from my windows pc to linux server.

suppose i have a file structure like this:

img /
css /

i tar.gz the directory, then upload, and then tar-xvzf the uploaded file. but the result is 3 file in root like this:


when i use zip instead of tar.gz it breaks the structure. i.e. it unzip some directories as empty files. fr examples it makes an empty file named img.

what's the reliable solution to transfer files between windows and linux?

share|improve this question
What tar are you using that generates such broken files? – Ignacio Vazquez-Abrams Jun 24 '10 at 16:03
up vote 2 down vote accepted

To me that looks like the tool you're using on windows is broken. A tarball is a tarball and the OS you make it on should not matter.

I recommend using p7zip though, on windows.

If you're more concerned with just moving the files, winscp is a nice GUI over scp. If your linux box is running sshd you can just transfer them over the network.

share|improve this answer
thanks. i use sepeedcommander to make archives. i will try with another one to see the result. – Alexar Jun 24 '10 at 16:06
yes. i used 7p to zip in windows and it worked in linux. thanks. but a note. just worked. the .zip had problem still. – Alexar Jun 24 '10 at 16:18

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.