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

推荐订阅源

WordPress大学
WordPress大学
The GitHub Blog
The GitHub Blog
F
Fortinet All Blogs
Cloudbric
Cloudbric
P
Palo Alto Networks Blog
T
Threatpost
T
Tor Project blog
T
Tenable Blog
AWS News Blog
AWS News Blog
Project Zero
Project Zero
L
LangChain Blog
Cyberwarzone
Cyberwarzone
Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
C
CERT Recently Published Vulnerability Notes
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Security Latest
Security Latest
云风的 BLOG
云风的 BLOG
I
Intezer
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
P
Proofpoint News Feed
A
Arctic Wolf
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Google DeepMind News
Google DeepMind News
V
Vulnerabilities – Threatpost
C
Cybersecurity and Infrastructure Security Agency CISA
MongoDB | Blog
MongoDB | Blog
aimingoo的专栏
aimingoo的专栏
K
Kaspersky official blog
Jina AI
Jina AI
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
D
DataBreaches.Net
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
博客园 - 【当耐特】
Hugging Face - Blog
Hugging Face - Blog
Recorded Future
Recorded Future
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
S
Secure Thoughts
TaoSecurity Blog
TaoSecurity Blog
P
Privacy & Cybersecurity Law Blog
P
Proofpoint News Feed
MyScale Blog
MyScale Blog
IT之家
IT之家
Forbes - Security
Forbes - Security
The Hacker News
The Hacker News
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
Y
Y Combinator Blog

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个机房按小时计费,支持支付宝,【点击查看】。