Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

i wanna transfer files from my windows pc to linux server.

suppose i have a file structure like this:

img /
    logo.gif
css /
    style.css
index.php

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

img\logo.gif
css\style.css
index.php

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
2  
What tar are you using that generates such broken files? –  Ignacio Vazquez-Abrams Jun 24 '10 at 16:03

1 Answer 1

up vote 1 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 tar.az worked. the .zip had problem still. –  Alexar Jun 24 '10 at 16:18

Your Answer

 
discard

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.