copying files from linux to windows xp over a home network

Posted on 2006-05-31
Last Modified: 2012-06-27
Hi,  I have 2 PCs on a small home network.  1 is a linux pc (RHEL4) w/ an ip addy of
the other is a windows xp box (

is there a way (using either dos or bash) to copy specific files from a linux box into a specific directory on the windows xp box?

e.g. I want to copy /usr/pd/test.txt  over to C:\mydirectory

Is this possible?  If so, is there a relatively straightforward syntax to use?

Question by:pdanese
    LVL 20

    Accepted Solution

    There are many different ways you can copy/move/replicate files between Linux and Windows computers on small peer-to-peer networks as your homenetwork is:
    1- via FTP servers
    2- samba ( Linux support for Windows networking ) files/folders/printer sharing
    3- NFS

    Probably the simplest way to copy files from Linux ( RedHat Enterprise 4) is to install and enable FTP server on RHEL4 PC  so you can get access to Linux PC from Windows XP using Internet Explorer ( or any other WEB browser ) or via command line ( ftp open etc.)
    Running Samba folder/printer sharing service ( smb/nbm ) on Linux PC is more convenient way of accessing files on Linux box from Windows based computers but you'll have to learn how to configure Samba on RHEL4.
      ---------------------------------------             Peer to peer file sharing   Samba Configuration - Linux/Windows Connectivity

    good luck
    LVL 1

    Assisted Solution

    You can use WinSCP from your windows box

    Or more precisely if you need to
    /usr/pd/test.txt over to C:\mydirectory
    then this is some thing that is initialated from the Linux end, so you can share your c:\mydirectory from windows - or use the hidden c$ share that should already be there.
    smbclient -L //windowsmachine
    for a list of shares

    Then mount one like this:
    mkdir /mnt/windows_c
    mount -t smbfs -o username=windowsusername,password=windowspassword //windowsmachine/$c /mnt/windows_c

    once you have done that you can do
    cp /usr/pd/test.txt /mnt/windows_c/mydirectory/
    to copy your file

    see also
    LVL 1

    Assisted Solution

    More Simpler way (enhancing Rich's answer) if you're using KDE.

    1.  Share your Windows folder.
    2. Open Konqueror browser in your Linux Box.
    3. In the address bar, type the url of the form
    There you Go!!!!

    Let us know how it goes.
    Good Luck
    LVL 17

    Assisted Solution


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
    In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now