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

推荐订阅源

T
Tenable Blog
H
Heimdal Security Blog
K
Kaspersky official blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
S
Schneier on Security
G
GRAHAM CLULEY
U
Unit 42
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
C
CERT Recently Published Vulnerability Notes
Google DeepMind News
Google DeepMind News
罗磊的独立博客
Stack Overflow Blog
Stack Overflow Blog
阮一峰的网络日志
阮一峰的网络日志
Simon Willison's Weblog
Simon Willison's Weblog
C
Cisco Blogs
Cyberwarzone
Cyberwarzone
T
The Exploit Database - CXSecurity.com
Project Zero
Project Zero
Security Archives - TechRepublic
Security Archives - TechRepublic
www.infosecurity-magazine.com
www.infosecurity-magazine.com
博客园 - 司徒正美
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
V
Visual Studio Blog
博客园 - Franky
Engineering at Meta
Engineering at Meta
WordPress大学
WordPress大学
Jina AI
Jina AI
P
Proofpoint News Feed
P
Proofpoint News Feed
有赞技术团队
有赞技术团队
L
LINUX DO - 最新话题
宝玉的分享
宝玉的分享
N
News and Events Feed by Topic
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
博客园 - 聂微东
T
The Blog of Author Tim Ferriss
Spread Privacy
Spread Privacy
Application and Cybersecurity Blog
Application and Cybersecurity Blog
IT之家
IT之家
S
Security Affairs
博客园 - 叶小钗
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
小众软件
小众软件
N
News | PayPal Newsroom
Cloudbric
Cloudbric
AWS News Blog
AWS News Blog
W
WeLiveSecurity
The Last Watchdog
The Last Watchdog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
NISL@THU
NISL@THU

Rat's Blog - Google Drive

GoIndex:一个无需服务器的Google Drive目录索引程序 - Rat's Blog 申请西南学院EDU教育邮箱,可免费获取无限容量的Google Drive网盘 - Rat's Blog 解决Rclone挂载Google Drive时上传失败和内存占用高等问题 - Rat's Blog Rclone+Google Drive搭建无限容量的媒体库,适用于Plex/Emby/Jellyfin等 - Rat's Blog 使用Aira2下载文件后自动上传到Google Drive网盘 - Rat's Blog Windows下使用RaiDrive挂载Google Drive/OneDrive网盘为本地硬盘使用 - Rat's Blog 免费申请谷歌G Suite套件、并获取无限空间Google Drive - Rat's Blog Aria2+Caddy+Rclone+GDlist+Aria2Ng+Google Drive一键安装脚本 - Rat's Blog VPS使用GDList挂载Google Drive和OneDrive网盘,支持多个同时挂载 - Rat's Blog
Sharecmd:一个可以将文件上传至Google Drive/Dropbox并自动生成分享链接的工具 - Rat's Blog
博主: Rat's · 2018-12-03 · via Rat's Blog - Google Drive
  •  发布时间:
  •  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个机房按小时计费,支持支付宝,【点击查看】。