If you use iCloud Drive to store documents and also use the terminal quite a bit, it might be handy to add a symbolic link to iCloud into your home directory. This will allow you to easily make your way around your iCloud files from a terminal.
You can do this with these steps:
- Open up a terminal
- Run the following command
ln -s "/Users/$USER/Library/Mobile Documents/com~apple~CloudDocs" iCloud
Note: the quotes above are important since there is a space in the directory path.
If you run
ls, you will now see a folder called
iCloud which is a symbolic link to your iCloud drive.
Next time that you need to
scp a file from your iCloud Drive to some server, rather than googling the path to your iCloud folder, you can simply
cd into it and go to town.