I am new to mac yosemite I have the list of my folder "Google Drive" I can see this from ls -la command , but when I want to cd to it it said not exist ?
How can I actually get access to this drive via 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.
For anyone looking for how to do this after Drive's recent updates... at the moment (June 2022) Drive files are stored in the following location:
/Users/_USERNAME_/Library/CloudStorage/_DRIVE_FOLDER_NAME_
If you are looking to access your files in a terminal window, the easiest way to get there may simply be to do the following:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With