LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-28-2022, 10:17 PM   #1
puppymagic
Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 67

Rep: Reputation: 4
Question Common ways for two separate laptops running Linux to transfer files?


Thanks!!

Both laptops are mine and both laptops are accessing the Internet with the same Wifi
 
Old 12-28-2022, 10:21 PM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,865

Rep: Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152Reputation: 1152
SFTP provides one convenient method to share files between to Linux machines (relies on both hosts to have an active SSH service).
 
Old 12-28-2022, 10:27 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,421
Blog Entries: 28

Rep: Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167Reputation: 6167
In addition, scp and rsync also come to mind.

I am a long-time user of scp, but I understand it's being deprecated.
 
2 members found this post helpful.
Old 12-28-2022, 10:31 PM   #4
shortarcflyer
Member
 
Registered: May 2022
Location: Louisiana/USA
Distribution: Void, ArchBang, PCLinuxOS, Mabox, ArcoLinux, Archman, RebornOS, Garuda, EndeavourOS
Posts: 568

Rep: Reputation: 74
Nitroshare and Warpinator also work good. I use mostly Nitroshare as I find it the faster of the two.
 
Old 12-28-2022, 10:35 PM   #5
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,811

Rep: Reputation: 2781Reputation: 2781Reputation: 2781Reputation: 2781Reputation: 2781Reputation: 2781Reputation: 2781Reputation: 2781Reputation: 2781Reputation: 2781Reputation: 2781
There are several ways:
1: A modified traditional technique using "sneakernet". A USB device you carry files from one to the other.
2: SFTP should work between them over WIFI, or you can run a Cat-5 jumper between Ether ports and put them on a private network for direct wired transfer using SFTP.
3: If you have many files, in particular if they are organized in folders, you can use RSYNC over WiFi or a direct wired network. Advantage, it can be restarted and it can efficiently transfer whole folders of files.

There are multiple other ways, but most are either insecure (ftp, rcp, etc) or fragile (anything that involve remote mounting of storage using NFS or CIFS) and can cause "issues" you will want to avoid.
 
Old 12-29-2022, 01:22 AM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,924
Blog Entries: 1

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
NFS is the linux native method of sharing files between computers. Files can be transferred in either direction from any computer with NFS properly configured. It doesn't matter whether the network connection is wired or wireless. With appropriate configuration, files on NFS mounts can be transparently used as if they were on local storage. All filesharing here is via NFS.
 
1 members found this post helpful.
Old 12-29-2022, 02:40 AM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,275

Rep: Reputation: 5342Reputation: 5342Reputation: 5342Reputation: 5342Reputation: 5342Reputation: 5342Reputation: 5342Reputation: 5342Reputation: 5342Reputation: 5342Reputation: 5342
I find this more useful for transferring individual files to non-Linux devices (like iOS devices), but:
Code:
python3 -m http.server
 
Old 12-29-2022, 05:34 AM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,931
Blog Entries: 45

Rep: Reputation: 3161Reputation: 3161Reputation: 3161Reputation: 3161Reputation: 3161Reputation: 3161Reputation: 3161Reputation: 3161Reputation: 3161Reputation: 3161Reputation: 3161
Moderator Response

Moved: This thread is more suitable in < Linux - General > and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 12-29-2022, 12:11 PM   #9
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,811

Rep: Reputation: 2781Reputation: 2781Reputation: 2781Reputation: 2781Reputation: 2781Reputation: 2781Reputation: 2781Reputation: 2781Reputation: 2781Reputation: 2781Reputation: 2781
Quote:
Originally Posted by mrmazda View Post
NFS is the linux native method of sharing files between computers. Files can be transferred in either direction from any computer with NFS properly configured. It doesn't matter whether the network connection is wired or wireless. With appropriate configuration, files on NFS mounts can be transparently used as if they were on local storage. All filesharing here is via NFS.
This is wrong. NFS is not a way to transfer files (although it CAN be subverted for that purpose) it is a way to share storage. Shared storage is different than transferring files. Shared storage exists physically in one place, but can be used form more than one. Transferred files physically exist in more than one place. That difference can be critical.
 
Old 12-29-2022, 01:05 PM   #10
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,924
Blog Entries: 1

Rep: Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082Reputation: 2082
Tomehto, tomahto. Copying from a non-shared filesystem to a shared filesytem is one form of "transfer", not a subversion.
 
Old 12-30-2022, 04:56 AM   #11
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,547

Rep: Reputation: Disabled
Personally, I just use a USB drive.
 
1 members found this post helpful.
Old 01-04-2023, 04:46 AM   #12
suramya
Member
 
Registered: Jan 2022
Location: Earth
Distribution: Debian
Posts: 249

Rep: Reputation: 102Reputation: 102
Syncthing is the best option to sync files between two (or more) computers in my opinion. Once you set it up all you need is to have both systems powered on at the same time and the data gets copied across without any fuss. I am using it to sync files between my 2 Linux systems, 1 Windows machine and android phone seamlessly.
 
Old 01-23-2023, 08:59 AM   #13
jgha
LQ Newbie
 
Registered: Dec 2015
Location: Hove, United Kingdom
Distribution: Mint, Arch, SolydX, PCLinuxOS, Mageia
Posts: 8

Rep: Reputation: Disabled
Quote:
Originally Posted by puppymagic View Post
Thanks!!

Both laptops are mine and both laptops are accessing the Internet with the same Wifi
For just the occasional copies of one or two files, I'd just use SSH - you need to have the openssh package installed on both computers, and one of them (the server) has to be running the sshd service.

For an easier arrangement ongoing, and easier for transferring multiple files/directories, I suggest Filezilla. You can save the connections so that you can just use them as and when.

Nitroshare is simple too, but I've personally found it to be a bit flaky.

Last edited by jgha; 01-23-2023 at 09:01 AM.
 
Old 01-23-2023, 09:41 AM   #14
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,715
Blog Entries: 4

Rep: Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951Reputation: 3951
Linux now supports many "network file systems," but NFS is the most commonly used protocol for Linux-to-Linux storage sharing. Also note that there are several versions of this protocol. Use the most recent one. (Microsoft Windows®, of course, also has full support for it.)

NFS is very straightforward to set up and works very well. When a client insisted that I use "multiple virtual machines" instead of "containers" on a recent project, I had to use NFS shares to connect the other VMs to the one that hosted the files. But it worked extremely well and the resulting (several hundred) web sites as fast as any. It was trivial to add a new machine to the [virtual ...] network.

For any shares that need to run across a public network, such as the Internet, simply "tunnel" the connections through a VPN such as OpenVPN – properly secured, of course, by unique digital certificates. (Never "PSKs = passwords.") VPN secures the connection and guarantees who you are actually talking to, while NFS provides the sharing.

Last edited by sundialsvcs; 01-23-2023 at 09:46 AM.
 
Old 01-23-2023, 12:29 PM   #15
enigma9o7
Senior Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi Linux
Posts: 1,421

Rep: Reputation: 565Reputation: 565Reputation: 565Reputation: 565Reputation: 565Reputation: 565
you can put sftp://othercomputer into the address bar of most file managers too.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: 4 Ways to Transfer Files and Directories on Linux LXer Syndicated Linux News 0 10-07-2019 04:12 AM
linux laptops: are they just laptops with Linux preinstalled? newbiesforever General 29 01-14-2017 03:17 PM
Encoding separate audio channels to separate files omnio Linux - Software 0 06-01-2007 07:46 AM
Looking for a tool to auto crop and separate images in to separate files.. mlsfit Linux - Software 2 08-06-2006 03:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration