![how to remove files from mac in terminal how to remove files from mac in terminal](https://www.isumsoft.com/images/apple/how-to-permanently-delete-files-on-mac-hard-drive/delete-a-file-in-terminal.png)
How to Copy Files to iCloud Drive via Terminal on Mac Now, your files will upload to the iCloud server. Mv ~/Desktop/images.jpeg ~/Library/Mobile Documents/com~apple~CloudDocs/ It will upload to iCloud Drive and remove it from its original place. Using command line, you can also move a file to iCloud Drive. How to Move Files to iCloud Drive by Terminal in Mac That’s it! Now, you will have access to the iCloud Drive folder. Then, press the Return key to access the iCloud Drive folder. 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.Ĭd ~/Library/Mobile Documents/com~apple~CloudDocs/ However, you have the option to illustrate it based on your need. The “~” tilde is a shortcut for the current users home directory. ~/Library/Mobile Documents/com~apple~CloudDocs/ Note: The command line path to iCloud Drive in macOS is: How to Access iCloud Drive Using Command Line on Mac Besides, ensure that you have the proper Internet connection to access iCloud Drive and iCloud Drive files and documents using Terminal. If it’s not already, click on Apple Menu → System Preferences (or click on System Preferences icon) → iCloud and make sure it’s enabled. So long as you know the command line, you can quickly copy and even move files to iCloud via Terminal on your Mac.īefore going ahead with the process, you need to ensure that iCloud Drive is enabled on your Mac. Though the process is not so straightforward, it’s not difficult either. Developers or advanced users may need to access iCloud Drive from the command line on Mac.