Follow below steps to use google drive from linux termial
Download google drive version for linux
wget https://docs.google.com/uc?id=0B3X9GlR6EmbnWksyTEtCM0VfaFE&export=download
yum install wget
wget https://docs.google.com/uc?id=0B3X9GlR6EmbnWksyTEtCM0VfaFE&export=download
You will see a file like above. Rename it with gdrive
mv uc\?id\=0B3X9GlR6EmbnWksyTEtCM0VfaFE gdrive
chmod +x gdrive
install gdrive /usr/local/bin/gdrive
Run below command to check
[root@bhagwat home]# gdrive list
Authentication needed
Go to the following url in your browser:
https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=367116221053-7n0vf5akejinrecpdoe99eg.apps.googleusercontent.com&redirect_uri=urn%3Aiet%3Awg%3oau%3A2.0%3Asponse_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=state
Enter verification code:
Just copy the above url & paster in your browser. Copy verification code here & you are done. Now you can use your google drive directly from terminal.
Upload any file with below command
[root@bhagwat home]# gdrive upload my_photos.zip
Use gdrive help command for more options
[root@bhagwat home]# gdrive help
Download google drive version for linux
wget https://docs.google.com/uc?id=0B3X9GlR6EmbnWksyTEtCM0VfaFE&export=download
yum install wget
wget https://docs.google.com/uc?id=0B3X9GlR6EmbnWksyTEtCM0VfaFE&export=download
You will see a file like above. Rename it with gdrive
mv uc\?id\=0B3X9GlR6EmbnWksyTEtCM0VfaFE gdrive
chmod +x gdrive
install gdrive /usr/local/bin/gdrive
Run below command to check
[root@bhagwat home]# gdrive list
Authentication needed
Go to the following url in your browser:
https://accounts.google.com/o/oauth2/auth?access_type=offline&client_id=367116221053-7n0vf5akejinrecpdoe99eg.apps.googleusercontent.com&redirect_uri=urn%3Aiet%3Awg%3oau%3A2.0%3Asponse_type=code&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fdrive&state=state
Enter verification code:
Just copy the above url & paster in your browser. Copy verification code here & you are done. Now you can use your google drive directly from terminal.
Upload any file with below command
[root@bhagwat home]# gdrive upload my_photos.zip
Use gdrive help command for more options
[root@bhagwat home]# gdrive help
No comments:
Post a Comment