How to transfer and share files over a network without a USB flash drive — and with just one line of code

File Transfer
(Image credit: Tom's Hardware)

Transferring files is something that we take for granted thanks to super-cheap USB storage and fast network connections. Every single reader has had an occasion where they needed to transfer files, and I bet most of us have just reached for a USB flash drive (perhaps one of the best flash drives).

That tried-and-trusted method is just one way to transfer files, but what if there were alternatives? I’m not talking about Iomega Zip drives (I miss those!) or floppy disks (those too!) I’m talking about direct file transfer between machines on the same network.

Latest Videos FromTom's Hardware
Les Pounder
Associate Editor

Les Pounder is an associate editor at Tom's Hardware. He is a creative technologist and for seven years has created projects to educate and inspire minds both young and old. He has worked with the Raspberry Pi Foundation to write and deliver their teacher training program "Picademy".

  • MisterMo
    Imagine bypassing your firewall to reinvent a worse version of right-click → Share. Windows, macOS, and Linux all solved this before Y2K.

    Future Article Ideas:

    How to turn off your PC with just one line of code” → shutdown /s /t 0 (instead of clicking Start → Power → Shut down)

    How to check the weather with just one line of code” → curl wttr.in (instead of glancing at your taskbar widget).
    Reply
  • Bruce Benson
    Back in the msdos days I discovered every pc could configure a ftp server to quickly exchange data.

    I use Python bottle to fire up quick servers all the time for sharing or exchanging information. Now with AI it is truly trivial to do.
    Reply
  • Joomsy
    MisterMo said:
    Imagine bypassing your firewall to reinvent a worse version of right-click → Share. Windows, macOS, and Linux all solved this before Y2K.

    Future Article Ideas:

    How to turn off your PC with just one line of code” → shutdown /s /t 0 (instead of clicking Start → Power → Shut down)

    How to check the weather with just one line of code” → curl wttr.in (instead of glancing at your taskbar widget).
    Obligatory addition of "shutdown -h now" for our non-Windows friends. :)

    And yeah, the Copyparty project is neat and all, but this is overkill for most scenarios. Just install OpenSSH, and use SFTP/scp/rsync. Any one of those will do the job, and the majority of devices can utilize them. I use them for my phone, TV, 3DS, PCs...You get the idea. And like you suggested, I also make use of Samba, but that's strictly for media server purposes.
    Reply