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

推荐订阅源

GbyAI
GbyAI
J
Java Code Geeks
雷峰网
雷峰网
WordPress大学
WordPress大学
宝玉的分享
宝玉的分享
云风的 BLOG
云风的 BLOG
V
Visual Studio Blog
V
Vulnerabilities – Threatpost
S
Securelist
The Hacker News
The Hacker News
The Register - Security
The Register - Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
G
Google Developers Blog
Hugging Face - Blog
Hugging Face - Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
M
MIT News - Artificial intelligence
AI
AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
The GitHub Blog
The GitHub Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Schneier on Security
Schneier on Security
N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
Google DeepMind News
Google DeepMind News
Hacker News - Newest:
Hacker News - Newest: "LLM"
H
Hacker News: Front Page
博客园 - 司徒正美
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
B
Blog
Microsoft Azure Blog
Microsoft Azure Blog
大猫的无限游戏
大猫的无限游戏
Security Latest
Security Latest
Engineering at Meta
Engineering at Meta
N
News and Events Feed by Topic
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
酷 壳 – CoolShell
酷 壳 – CoolShell
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
T
Threat Research - Cisco Blogs
U
Unit 42
V
V2EX
V2EX - 技术
V2EX - 技术
L
LINUX DO - 最新话题
aimingoo的专栏
aimingoo的专栏
Microsoft Security Blog
Microsoft Security Blog
Recorded Future
Recorded Future
P
Privacy & Cybersecurity Law Blog
美团技术团队
小众软件
小众软件
F
Fortinet All Blogs

Rat's Blog - NextCloud

一个可以自动安装多网站程序的面板 :YunoHost安装教程 - Rat's Blog Cloudbox:一个强大的多功能云媒体服务,可自动获取视频资源并在线播放 - Rat's Blog Caddy环境下一些Web应用程序的配置参考 - Rat's Blog Ubuntu使用Snap快速安装NextCloud网盘,并配置域名及SSL证书 - Rat's Blog 使用Docker快速安装NextCloud个人私有云盘 - Rat's Blog 使用Docker快速安装Aria2+AriaNg+Filerun/Nextcloud,在线下载BT磁链/在线观看/全功能文件管理/云盘应用 - Rat's Blog 使用NextCloud来搭建我们的私有网盘、并结合Redis优化性能 - Rat's Blog
Sharecmd:一个可以将文件上传至Google Drive/Dropbox并自动生成分享链接的工具 - Rat's Blog
博主: Rat's · 2018-12-03 · via Rat's Blog - NextCloud
  •  发布时间:
  •  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个机房按小时计费,支持支付宝,【点击查看】。