As Eric said - iCloud is primarily a syncing system on El Capitan and Yosemite - on Sierra this has changed a bit. The central storage place is iCloud and your documents and data are updated across all devices., so you can alway access them from any device you own and they are in sync.
how does this local storage work? One of the purposes of iCloud is to provide extra storage.
Go to Apple menu System Preferences, then click Apple ID. If you’re using macOS Mojave or earlier, you don’t need to click Apple ID. Sign in with your Apple ID, if you need to. Select iCloud Drive. To add the files from your Mac Desktop and your Documents folder to iCloud Drive, turn on Desktop and Documents. ICloud Drive lets you organize your files with folders, rename them, and tag them with colors. And when you make a change, the update is made across all your devices. You can even have everything in your Mac Desktop and Documents folders automatically available in iCloud Drive. Dec 06, 2021 iCloud Drive lets you organize your files with folders, rename them, and tag them with colors. And when you make a change, the update is made across all your devices. You can even have everything in your Mac Desktop and Documents folders automatically available in iCloud Drive. Apps using iCloud Your favorite apps are even better with iCloud. The files show up online when I log into iCloud and all the folders are there (see screen shot). If I search for the files in finder window on my MacBook Pro, they show up mapped as 'iCloud DriveTextEditNeals Bio.rtf' (see screen shot). But when I click and it takes me to my iCloud Drive folder in my Finder Sidebar, still empty.
iCloud provides extra storage for the mobile devices (iPhone, iPad, iPod) with very much local storage. You can download from iCloud, but the local copies of older documents will automatically removed.
Content in iCloud is not included in the iCloud backups of mobile devices.
On a Mac iCloud Drive has hidden shadow copies in your user library. And these copies are included in the Time Machine backup. You cannot avoid the local shadow copies on Yosemite and El Capitan.
On macOS Sierra you can use iCloud Drive and your Desktop Folder and Documents folder on a Mac as a storage extension like on iOS devices, if you use 'optimize' and include your Desktop and Documents folder in iCloud Drive. Then older shadow copies will be purged and you need an internet connection to be able to work with documents and data you have not used in a long time.
Time Machine backups do not include the optimized documents and data. You have to download them regularly to an external backup drive to have a local backup.
Jan 5, 2017 10:40 PM
Developers or advanced users may need to access iCloud Drive from the command line on Mac. Though the process is not so straightforward, it’s not difficult either. So long as you know the command line, you can quickly copy and even move files to iCloud via Terminal on your Mac.
How To Open Icloud Mac
Before going ahead with the process, you need to ensure that iCloud Drive is enabled on your Mac. If it’s not already, click on Apple Menu → System Preferences (or click on System Preferences icon) → iCloud and make sure it’s enabled. Besides, ensure that you have the proper Internet connection to access iCloud Drive and iCloud Drive files and documents using Terminal.
How to Access iCloud Drive Using Command Line on Mac
Note: The command line path to iCloud Drive in macOS is:
Icloud Drive On Iphone
The “~” tilde is a shortcut for the current users home directory. However, you have the option to illustrate it based on your need.
Icloud Drive For Windows
To access iCloud Drive in the Terminal on your Mac, you need to use the “cd” command and then select the iCloud documents path’s directory.
To do so, use the following command:
cd ~/Library/Mobile Documents/com~apple~CloudDocs/
Then, press the Return key to access the iCloud Drive folder.
That’s it! Now, you will have access to the iCloud Drive folder. Now, go ahead with your work.
How to Move Files to iCloud Drive by Terminal in Mac
Using command line, you can also move a file to iCloud Drive. It will upload to iCloud Drive and remove it from its original place. To do so, use the mv command.
mv ~/Desktop/images.jpeg ~/Library/Mobile Documents/com~apple~CloudDocs/
Now, your files will upload to the iCloud server.
How to Copy Files to iCloud Drive via Terminal on Mac
With the use of cp command, you can copy files to iCloud Drive via Terminal. The copied files are uploaded iCloud.
How To Use Icloud Mac
cp ~/Desktop/images.jpeg ~/Library/Mobile Documents/com~apple~CloudDocs/
That’s pretty much it!
You’d like to take a peek at these posts as well: