惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

W
WeLiveSecurity
T
The Exploit Database - CXSecurity.com
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Security @ Cisco Blogs
T
Threat Research - Cisco Blogs
TaoSecurity Blog
TaoSecurity Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
腾讯CDC
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
T
The Blog of Author Tim Ferriss
Microsoft Azure Blog
Microsoft Azure Blog
罗磊的独立博客
F
Full Disclosure
博客园 - 【当耐特】
C
CERT Recently Published Vulnerability Notes
Engineering at Meta
Engineering at Meta
Application and Cybersecurity Blog
Application and Cybersecurity Blog
T
Threatpost
I
Intezer
V2EX - 技术
V2EX - 技术
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The Hacker News
The Hacker News
小众软件
小众软件
Google DeepMind News
Google DeepMind News
T
Tailwind CSS Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
N
News | PayPal Newsroom
MyScale Blog
MyScale Blog
AI
AI
Vercel News
Vercel News
Spread Privacy
Spread Privacy
美团技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The GitHub Blog
The GitHub Blog
V
Vulnerabilities – Threatpost
Schneier on Security
Schneier on Security
Cyberwarzone
Cyberwarzone
G
GRAHAM CLULEY
Help Net Security
Help Net Security
Hacker News: Ask HN
Hacker News: Ask HN
Google DeepMind News
Google DeepMind News
MongoDB | Blog
MongoDB | Blog
L
LINUX DO - 热门话题
U
Unit 42
L
LangChain Blog
Recent Announcements
Recent Announcements

Rat's Blog - Seafile

使用Docker安装Seafile云盘专业版,并配置域名及SSL证书 - Rat's Blog Linux VPS一键安装Seafile搭建私有云盘存储 - Rat's Blog
Sharecmd:一个可以将文件上传至Google Drive/Dropbox并自动生成分享链接的工具 - Rat's Blog
博主: Rat's · 2018-12-03 · via Rat's Blog - Seafile
  •  发布时间:
  •  21807 次浏览
  •   9 条评论
  •  1439 字数
  • 分类: 主机教程
  1.  首页
  2. 正文  
  3. 分享到:

说明:Sharecmd是一个用Golang编写的Cmdline工具,可以直接将文件上传到配置的网盘类型,并自动生成分享链接的工具,并将该链接复制到系统剪贴板。支持WindowsLinuxMacos系统。

#目前支持的网盘类型
Dropbox、Google Drive、Seafile、Nextcloud/Owncloud

貌似这是个新项目,作者也天天在更新,所以以后可能会支持更多网盘或功能,有兴趣的可以多关注下。

使用方法

Github地址:https://github.com/mschneider82/sharecmd

这里只说Linux系统的使用方法,我们先根据自身系统版本找到编译好的二进制文件下载链接→下载地址

#下载二进制文件
wget https://github.com/mschneider82/sharecmd/releases/download/v0.0.46/sharecmd_0.0.46_Linux_x86_64.tar.gz
#解压文件
tar zxvf sharecmd*.tar.gz
#移动文件
mv share /usr/local/bin
#删掉没用的文件
rm -rf sharecmd*.tar.gz README.md LICENSE

然后开始设置网盘,使用命令:

share --setup

请输入图片描述
使用上下键选择,然后Enter确认。这里博主选择的是Google Drive,会给个链接你打开,然后登录账号授权获取验证码,再输入SSH客户端确认即可。
请输入图片描述
最后就可以上传了,上传命令:

#使用命令
share 文件路径

#比如将home文件夹的MOERATS文件上传至网盘
share /home/MOERATS
或者
cd /home
share MOERATS

请输入图片描述
如果后面出现Can't copy link to clipboard报错,可以无视,就是不能使用剪切板而已,影响不大。

上传目录

#文件将上传到网盘的以下目录
Dropbox:/Apps/sharecmd
Google drive:/sharecmd
Seafile:/sharecmd
Own/Nextcloud:/sharecmd

最后其它的网盘博主都没有,所以也没测试,有需求的就自己慢慢琢磨。


版权声明:本文为原创文章,版权归 Rat's Blog 所有,转载请注明出处!

本文链接:https://www.moerats.com/archives/809/

如教程需要更新,或者相关链接出现404,可以在文章下面评论留言。

Vultr新用户注册送100美元/16个机房按小时计费,支持支付宝,【点击查看】。