I wanna transfer some files from this PC with Ubuntu to a PC with Windows 7 I don't care how to do it (ftp, samba or whatever) I wanna know the steps, I searched a lot but I can't find anything that works. Thank you.


3 Answers 3


Share Folders in Ubuntu 11.10

Objectives: Share a folder in Ubuntu and access it from Windows

To get started, right-click on the folder you wish to share and select ‘Sharing Options’


When prompted to install Samba services, do it.


After installing Samba services, click ‘Restart session’


Then click ‘Create Share’ to complete the process.


Open Terminal Replace USERNAME with your account name.

sudo smbpasswd -a USERNAME

sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.old
sudo nano /etc/samba/smb.conf

scroll to the global section, and add the lines

encrypt passwords = true 
wins support = yes

press ctrl+o and ctrl+x to save, and exit nano

sudo service smbd restart

On the Windows machine, go to Start –> All Programs –> Accessories –> run and type the command:


computer name can be ip address of ubuntu machine , to check ip of ubuntu machine , go to ubuntu machine & open terminal & type ifconfig


Type the Ubuntu computer name and the share name of the resource.

You will get a prompted to enter your credentials. Type your Ubuntu username and password and click ‘OK’


Now try again to access the shares from your Windows machine


Transfer files From Ubuntu To Windows

On Ubuntu Machine install openssh-server

sudo apt-get install openssh-server

after installing go to windows machine & download / install FileZilla & open it


  • Host = Ubuntu Machine Ip address
  • Username = Your Ubuntu Machine Username
  • Password = You Username Password
  • Port = 22

Done Now you can easily transfer files from Windows to Ubuntu OR Ubuntu to windows

  • 1
    Instructions worked flawlessly, transferring files now when my USB stick failed because of it's size.
    – thomasrive
    Commented Jul 21, 2012 at 0:22
  • 2
    More than two years later, still works like a charm (Ubuntu 12.04 to Windows 7).
    – wesf90
    Commented Oct 4, 2014 at 1:04
  • On Windows 10, for the first method, I found that the run prompt wouldn't do anything with the path I was giving it. You can however, open Explorer and click the Network link on the left, then find the hostname of the Ubuntu PC and it will show all shared folders.
    – Luke
    Commented Sep 2, 2016 at 15:53
  • Thanks, it works but the transfer rate is very slow for me (max 150KBytes/s). Can I make it faster? I can download files at 5MBytes/s from internet.
    – Rasoul
    Commented Aug 11, 2017 at 21:11
  • Sharing folder working on Ubuntu 22.04 to Windows 10. I just used the IP of my ubuntu machine to connect to the folder from windows 10. \\xxx.xxx.xx.xx\folder_name
    – Quimbo
    Commented Feb 5, 2023 at 8:43

HTTP server

HTTP is the protocol used to access regular websites, so every OS was forced to implement it!

Find your IP on the source computer, e.g. On Ubuntu:

ip addr

Create a server in a directory that contains the file you want to transfer, Python 3:

python3 -m http.server 8080

or Python 2:

python -m SimpleHTTPServer 8080

On the receiving computer, open a browser, and visit:

Now you can navigate through directories to the file you want.

I'm not sure if this method is fast / robust, but it is one of the simplest to setup and portable.

Faster alternatives are discussed here.


Just setup an SSH server on Windows, and then you can use rsync on Ubuntu to copy files in either direction. Full CLI goodness.

It might be possible to run rsync on Windows as well.

I have described the Ubuntu to Ubuntu rsync usage in more detail at: How to share files through the local network?

  • 1
    For a single file, another similar approach is woof. Commented Jun 4, 2016 at 22:21

There is a free file manager with GUI WinSCP. You can copy files in one click.

enter image description here

After creating connection you have one panel with your local computer and a panel with a remote computer.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .