How to upload files to Google Drive from linux, unix command prompt?

  • Check what version of unix you are using: uname -a
  • Visit and download respective ‘drive’ utility from:
  • wget the file.
  • Rename the file to drive using ‘mv ????? drive’
  • Set the correct file permission for ‘drive’, chmod 755 drive
  • Execute drive: ./drive
  • Visit the on-screen URL, obtain the code and paste into ‘drive’ program.
  • Use the following command to upload: drive upload -f <folder/file>
  • The upload happens in real-time on Google Drive.
facebooktwittergoogle plus

Leave a Reply