Ubuntu版本:14.04.5 LTS。
gdrive是一个用于与gdrive交互的命令行实用工具。
我已经用特定的用户初始化了gdrive (https://github.com/prasmussen/gdrive)。例如,gdrive about返回它的信息。
我安装gdrive的方式:
$ go get github.com/prasmussen/gdrive
$ gopath=$(go env | grep 'GOPATH' | cut -d "=" -f 2 | tr -d '"')
$ echo 'export PATH=$PATH:$gopath/bin' >> ~/.profile
$ source .profile
$ gdrive about # This line authenticates the user only once on the same node.
Authentication needed
Go to the following url in your browser:
https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=...e=state
Enter verification code:gdrive about
User: userName userSurname,
Used: 6.5 GB
Free: 9.6 GB
Total: 16.1 GB
Max upload size: 5.2 TB我想重新初始化/重新认证gdrive与一个全新的用户电子邮件地址。
<#>是否有任何方法用另一个电子邮件地址更改用户的信息?
如果我删除gdrive并重新安装它,它会是一个解决方案吗?
发布于 2018-04-08 17:21:55
gdrive help about将输出:
Google drive metadata, quota usage
gdrive [global] about [options]
global:
-c, --config Application path, default: /home/banyhong/.gdrive
--refresh-token Oauth refresh token used to get access token (for advanced users)
--access-token Oauth access token, only recommended for short-lived requests because of short lifetime (for advanced users)
options:
--bytes Show size in bytes清除身份验证数据的最简单方法是rm -rf ~/.gdrive。
发布于 2021-09-20 06:12:57
我找到了一种最简单的方法来注销当前在G-Drive Cli中登录的用户
rm -rf ~/.gdrive/token_*.json
https://askubuntu.com/questions/1021600
复制相似问题