点击上方蓝字
关注大侠之运维
后台回复99.99% 获取运维干货物
大家好,这里是大侠之运维,每天分享各类干货。
1 sharing简介
sharing是一个命令行工具,用于将目录和文件从命令行共享到 iOS 和 Android 设备,而无需额外的客户端应用程序
2 安装
github源码可以访问如下地址
https://github.com/parvardegr/sharing
github如果无法访问的话,可以后台直接私信
该工具需要nodejs环境,通过npm安装
npm install -g easy-sharing
3 软件特性或亮点
共享目录和文件 共享剪贴板 接收文件 支持基本身份验证 支持ssl
4 简单使用
共享文件或目录
sharing /directory-or-file-to-share
用手机扫描二维码,两台设备必须连接到同一 Wi-Fi,或者,如果您有公共 IP 地址,请使用该 --ip 参数。
sharing --ip your-public-ip-address /directory-or-file-to-share
浏览目录下载需要的文件或目录

注意: macOS 用户应使用 easy-sharing 二进制而不是 sharing
其它用法:
$ sharing --help
Usage:
• Share file or directory
$ sharing /path/to/file-or-directory
• Share clipboard
$ sharing -c
• Receive file
$ sharing /destination/directory --receive;
• Share file with Basic Authentication
$ sharing /path/to/file-or-directory -U user -P password # also works with
--receive
Options:
--version Show version number [boolean]
--debug enable debuging logs
-p, --port Change default port
--ip Your machine public ip address
-c, --clipboard Share Clipboard
-t, --tmpdir Clipboard Temporary files directory
-w, --on-windows-native-terminal Enable QR-Code support for windows native
terminal
-r, --receive Receive files
-q, --receive-port change receive default port
-U, --username set basic authentication username
[default: "user"]
-P, --password set basic authentication password
--help Show help [boolean]
如果你想要用客户端工具的话,那么之前推荐的过的这款工具也可用于文件分享或同步 强大!穷人也可用的生产力工具,开源、全平台支持
注:如需转载,须保留文首公众号名片,其它行为一律视为非授权转载。
end
大侠之运维,相识便是缘
收集不易,点赞、留言、分享就是大侠🦸♀️写下去的动力!
👆点击查看更多内容👆
推荐阅读 ⬇️ 都是高赞
PS:各类干货,每天更新,防止错过,记得读完点一下“在看”,加个“星标”,这样每次新文章推送才会第一时间出现在你的订阅列表里。点“在看”支持下吧!
文章转载自大侠之运维,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




