First, you need to mount the remote filesystem, which can be done by clicking on your email in Gnome's file explorer. You can use the gvfs
commands Tony mentioned (now deprecated as they moved into gio
) to interact with the mounted Google Drive filesystem.
If you try to open the folder from the file explorer in your terminal, you will notice that the working directory is /run/user/...
and all the filenames and directory names are unreadable. I do not advise trying to manipulate the files through this path. Instead, the files can be accessed and manipulated through gio
via readable URLs once it is mounted; for example
google-drive://your_email@gmail.com/Directory%20One/File%20one.png
Some useful commands:
gio list [file_url] -ud
: like ls
, shows the full readable urls for the directory or glob within your Google Drive
gio copy [source local filepath or Google Drive file url] [destination local filepath or Google Drive file url]
: like cp
, and can be used to move files between your Google Drive and your disk.
gio open [file_url]
: opens the file from your Google Drive in the default application
Note that accessing them either through the file explorer or this method is done just in time over the network rather than downloading your whole Google Drive to your disk. Because of this, repetitively accessing files can be slow.
It may be useful to:
- temporarily
gio copy
the files in question that you want to diff
- compare them locally
- make any necessary changes to either drive through
gio
- remove the temporary files
/run/user/<uid>/gvfs
as Christophe / Bladecoder suggested: https://twitter.com/BladeCoder/status/860453465180565505. All I can see is errors and hashes (not the name of the files), it takes a long time, no way to cd. – Ramon Suarez May 08 '17 at 13:31