How to get access to Google Drive from terminal
Arguments to commands in Bash (the language used in Terminal) are separated by spaces. So when you write cd Google Drive
, you're passing two arguments to cd
- Google
and Drive
. cd
is just ignoring the second argument and trying to cd into the directory called Google
, which doesn't exist.
In order to cd into Google Drive
, you need to write cd Google\ Drive
or cd "Google Drive"
. The \
escapes the space character and treats it as a single string.
I would also type cd Goo
and then press tab
so it would autocomplete with the escaped space character.
As Google Drive has a space in between the words you need to quote the directory name.
Try cd 'Google Drive'