Easy access iCloud Drive in Terminal

I’m storing my data on iCloud Drive and often I would like to access the files in a terminal window. But to find the correct path to the iCloud Drive is very time consuming. So I have a nice shortcut for that, just put the following code into your profile script. (.zprofile in the userhome or .bash_profile if you are using not the default shell)

alias ic='cd ~/Library/Mobile\ Documents/com~apple~CloudDocs'

Now you have to restart the terminal and you can just type “ic” and you’re on the root folder of your iCloud Drive.

Leave a Comment