![]() ![]() Now I can just lg when I want a listing with the common names. alias lg='gio list -a "standard::display-name"' I added the following to my ~/.bashrc file. google-drive:host=,user=********]$ gio list -a "standard::display-name"ġR3-QyxlBRlLjpjpWh28ntuUaep1510VYĐ (regular) standard::display-name=ok.txtġRHAnCZyLC3dXUd1cLTUcyJOISLkGK1QIė177 (regular) standard::display-name=Resume.txtīecause I use this so often, I created an alias to quickly get a listing. You can get a list with the filenames by using the gio command. This can make it hard to know what file you are going to be accessing. google-drive:host=,user=********]$Īs you can see above, Google Drive doesn't show the "display-name" of the file, but rather the ID of the file. 1 mcherisi mcherisi 140 May 22 22:50 1R3-QyxlBRlLjpjpWh28ntuUaep1510VY 1 mcherisi mcherisi 7177 May 22 22:42 1RHAnCZyLC3dXUd1cLTUcyJOISLkGK1QI Here is it in action: ~]$ cd /run/user/$UID/gvfs/google-drive* Or you can use the following command to add it on the fly: cd /run/user/$UID/gvfs/google-drive* You can your UID by using the echo command like so: ~]$ echo $UID Of course you have to replace with your UID and with the Google Drive connection name. The default location for a gvfs mounted drive is /run/user//gvfs//. Gnome uses it's gvfs (GNOME Virtual file system) to mount Google Drive with your account. ![]() I wanted to access Google Drive from the command line so I can use rsync to synchronize my Documents directory with Google Drive. Here is where this became really useful for me. Access Google Drive from Linux Command Line You can use your favorite backup tool (Deja Dup?) to copy your important files to Google Drive. Now that you can access Google Drive from your desktop, so can all of your apps. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |