For me kde connect is great for this and a lot of similar purposes(clipboard sharing, sms, media controls, notifications)
kde connect is incredible, even for people on gnome. highly recommend
Show HN: Sharing, command-line tool to share files with your phone
41–50 of 57 posts
Re: Show HN: Sharing, command-line tool to share files with your phone
#42I have an alias in my .bashrc for that: alias instashare='python3 -m http.server 8082'
echo "http://$(ip route get 1 | sed -n 's/.*src \([0-9.]\+\).*/\1/p'):8082" | qrencode -t UTF8 -o -
Credit to https://stackoverflow.com/a/49552792 for fetching the IP address.Re: Show HN: Sharing, command-line tool to share files with your phone
#43Re: Show HN: Sharing, command-line tool to share files with your phone
#44I have an alias in my .bashrc for that: alias instashare='python3 -m http.server 8082'
If you have qrencode on your system, you can also print a QR code with echo "http://$(ip route get 1 | sed -n 's/.*src \([0-9.]\+\).*/\1/p'):8082" | qrencode -t UTF8 -o - Credit to https://stackoverflow.com/a/49552792 for fetching the IP address.
hostname -I
Generally simpler and works in the 90% case.Re: Show HN: Sharing, command-line tool to share files with your phone
#45I use Syncthing[0] for continuous file synchronization to/from my phone, its pretty nifty. Way more memory-heavy than something like this though. [0] https://syncthing.net/
If you're already using Telegram, you can use the Saved Messages pseudochat to transfer text and files between the phone and desktop. Telegram has an excellent desktop client.
Re: Show HN: Sharing, command-line tool to share files with your phone
#46Can I use it with my Ipad?
Re: Show HN: Sharing, command-line tool to share files with your phone
#47So is this just an http server with a QR code for the link?
Re: Show HN: Sharing, command-line tool to share files with your phone
#48Tailscale’s Taildrop ( https://tailscale.com/kb/1106/taildrop/ ) has completely solved this problem for me.
Re: Show HN: Sharing, command-line tool to share files with your phone
#49https://snapdrop.net is my go to for this. Works on any modern browser on the same LAN. Supports files and plain text. Previous HN discussion: https://news.ycombinator.com/item?id=25524472