In order to sync google drive in Ubuntu you need to have authentication with Google Drive. Type the following command
sudo grive -a
Now go the folder that contains files you want to sync with Google Drive and enter the command: “grive sync”.
Now google drive will be synced with your files.
In order to avoid mistakes or large waiting periods for the uploading of many more files that originally anticipated, you can always pre-check what Grive is going to sync by using the following command:
This command will display what actually is going on during sync.
Note: Grive is google drive client for linux, so please don't get confused between drive and grive.