ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > General Software Discussion

Easy file sharing from the Linux command line

(1/4) > >>

Recently I was wondering how I could get a file from a headless Linux VM onto a different Windows machine, and thought it would be super useful to have some kind of file sharing service which could be accessed from the command line. Almost like a pastebin, but for files rather than just text.

A quick search revealed something called which allows you to send files up to 10 GB with no complicated setup required.

* Made for use with shell
* Share files with a URL
* Upload up to 10 GB
* Files stored for 14 days
* For free
* Encrypt your files
* Preview your files in the browser
An example of how to use it:

--- ---$ curl --upload-file ./hello.txt
And there's even an onion link:

I'd never heard of it but searched the DC forum in case I'd missed some previous mention of it, and found that a relatively new member of the forum posted a link using it just a couple weeks ago, here:

It's open source, too, so if you want to host it yourself you can do that:

This code contains the server with everything you need to create your own instance. currently supports the s3 (Amazon S3), gdrive (Google Drive) providers, and local file system (local).-
--- End quote ---

I hope others here find this useful.

NextCloud or similar software running on your own computers.

That works as well. Not difficult, but not as easy, of course. Still, an interesting learning experience to make it work and you can run this on a as-needed basis. Can communicate with Azure, AWS or other cloud services as well, if so desired.

I created something like that using Nancy for the company that I work for- it's nice to see an alternate implementation.  I use SyncThing and Synology Cloud Station, but it's nice to have a simple service where you can just perform a put then a get to retrieve it sometimes- especially hitting it using cUrl or something similar.

This is slightly off-topic since it's not a command-line utility, but if you're just looking for a way to quickly send some file(s) to yourself or others, without needing long-term storage, there's Firefox Send.

Firefox Send lets you share files with end-to-end encryption and a link that automatically expires. So you can keep what you share private and make sure your stuff doesn’t stay online forever.-
--- End quote ---

That sounded really cool, but I am not able to get to, it seems to be down :-(


[0] Message Index

[#] Next page

Go to full version