How To Upload File To Google Drive From Linux Command Line
How To Upload File To Google Drive From Linux Command Line
Save
Source (link)
Using a command line tool could be useful while uploading large files to Google
Drive. In this short post, I will walk you through the steps of using gdrive Linux
command line utility to upload files to Google Drive.
https://medium.com/geekculture/how-to-upload-file-to-google-drive-from-linux-command-line-69668fbe4937 1/5
09/09/2022 11:53 How to Upload File to Google Drive from Linux Command Line | by Utkarsha Bakshi | Geek Culture | Medium
GitHub - prasmussen/gdrive: Google Drive CLI Client Open in app Get started
Sign in to Medium with Google
gdrive is a command line utility for interacting with Google Drive.
gdrive is finally verified for using sensitive…
github.com Regis Silva
[email protected]
Continue as Regis
Lets get right into it. To create your account, Google will share your name,
email address, and profile picture with Medium. See
Medium's privacy policy and terms of service.
Step 1: Download the latest release from Github
First, download the latest release tar from Github.
wget
https://github.com/prasmussen/gdrive/releases/download/2.1.1/gdrive_
2.1.1_linux_386.tar.gz
./gdrive about
In the console you will see an authentication URL that you can click and open in the
browser to obtain an auth token.
When the URL opens in the browser, just select your account and copy the auth
token that is displayed on the next screen.
https://medium.com/geekculture/how-to-upload-file-to-google-drive-from-linux-command-line-69668fbe4937 2/5
09/09/2022 11:53 How to Upload File to Google Drive from Linux Command Line | by Utkarsha Bakshi | Geek Culture | Medium
Regis Silva
147 7
[email protected]
Continue as Regis
The command will upload the file to Google Drive. You can use the list command to
list the files in your drive.
./gdrive list
https://medium.com/geekculture/how-to-upload-file-to-google-drive-from-linux-command-line-69668fbe4937 3/5
09/09/2022 11:53 How to Upload File to Google Drive from Linux Command Line | by Utkarsha Bakshi | Geek Culture | Medium
Continue as Regis
Join Medium with my referral link - Utkarsha Bakshi
To create your account, Google will share your name,
Read every story from Utkarsha Bakshi (and thousands of other
email address, and profile picture with Medium. See
writers on Medium). Your membership fee directly supports…
Medium's privacy policy and terms of service.
utkarshabakshi.medium.com
Give a tip
Subscribe to receive top 10 most read stories of Geek Culture — delivered straight into your inbox, once a week. Take
a look.
Your email
By signing up, you will create a Medium account if you don’t already have one. Review our Privacy Policy for more information about our
privacy practices.
https://medium.com/geekculture/how-to-upload-file-to-google-drive-from-linux-command-line-69668fbe4937 4/5
09/09/2022 11:53 How to Upload File to Google Drive from Linux Command Line | by Utkarsha Bakshi | Geek Culture | Medium
https://medium.com/geekculture/how-to-upload-file-to-google-drive-from-linux-command-line-69668fbe4937 5/5