Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I access my iCloud Drive folder from Terminal?

I'm running OS X Yosemite. I would like to save my code folder in iCloud Drive so that it's automatically backed up. I need to access files from the Terminal often, so how can I access iCloud Drive from the Terminal?

like image 596
Varinder Singh Avatar asked Sep 22 '14 17:09

Varinder Singh


People also ask

How do I access iCloud folder on Mac?

On your MacClick iCloud Drive in the sidebar of any Finder window.

How do I retrieve a folder from iCloud Drive?

In Settings on iCloud.com, click Restore Files (in the Advanced section). Select each file you want to restore, or select Select All. Click Restore.


1 Answers

cd ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/

I would just add a symbolic link either to this folder or to a Source subfolder in your home directory to make working with this easier.

For example:

ln -s ~/Library/Mobile\ Documents/com\~apple\~CloudDocs ~/iCloud

and/or

ln -s ~/Library/Mobile\ Documents/com\~apple\~CloudDocs/Source ~/Source
like image 167
mixja Avatar answered Sep 28 '22 00:09

mixja