Simplest question in the world (search hits missing in spades)
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Simplest question in the world (search hits missing in spades)
How in Ubuntu do you copy (or move) files from the rest of your system's hard drive/s to a shared folder on the same machine?
And to answer the question before it's asked, I have gone back to Google because DuckDuckGo is dog slow on my WiFi LAN (I prefer to blame my service carrier [Spectrum] rather than my machine).
I have used the word "LOCAL," a word I thought summarises 'same machine' in my search strings but I don't see any hits which look like they link to discussions of copying files on the same machine (a four-word string that is bound to confuse the Boolean routines on Any search engine, DDG included).
I remember seeing something close, which recommended using cUrl, wget, even FTP, but I don't think I should have to resort to those measures.
My intent is facilitate copying (or moving) APKs for my phone into the shared folder from where I can SMB or FTP them to the logical target {the phone}.
Once I know the ordinary path, I ought to be able to script something (I script in bash, for the uninitiated), shouldn't I?
My intent is facilitate copying (or moving) APKs for my phone into the shared folder from where I can SMB or FTP them to the logical target {the phone}.
Is this an Android phone? Then mount it as a mtp device somewhere. Then you can copy to it/from it. With core tools or a file mgr. Phone needs to be set as mtp device.
Alternatively, you can install Airdroid from the Play Store. You do not need an Airdroid account to use it for local file transfers. I've been using Airdroid for several years and found it quite serviceable.
@rtmistler: I still wouldn't know the destination of the cp or mv command, would I?
What's the path? What's the pattern to look for? I can copy or move from hard drive to attached USB volume, because I've known the basic pattern point a to point b for longer than even USB has been around, but no one has given me an answer to WHAT'S THE PATH?
@teckk: I want to skip physically (and in a literal sense, a USB cable is physical, is it not?) connecting my phone to my laptop. To use the WiFi LAN I already have in place. I did install an MTP utility, only to discover that it used MTP and Only MTP, at which point in time I UNinstalled it (I didn't even have it on my machine long enough to remember the name.)
@frankbell: I have used AirDroid since I first got this phone, and on one other phone, briefly, before this one. Frankly, I find it a hassle, too. I'm looking for "old school" means, like SSH and SMB which (before 2017, ymmv) were as easy to get instructions for as falling out of bed. Again, path please!
Did something happen in the two and a half years between my first Android phone and this one to make "old and reliable" such an anathema to people who used to know this stuff (myself included)? [It reminds me of bash 4.0 and wherever bash is now in update numbers: when did declaring an IFS suddenly become an obstacle and not a help?]
When I created a shared folder on my laptop, I did not use a file navigator. I created it in the .conf file (ssh.conf, more than likely) which, of course, is the wrong way to go about things. The right way would certainly give me a path, as I banged on and on about in my previous post; the minor issue of setting permissions to that would indeed be no issue at all to someone of my experience.
Always the smallest things baffle and confuse one, right?
So my new question is: is it preferable to make such a directory in /home/$USER/Public or simply /home/$USER? I've always been sketchy on that bit.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.