alias cloud='cd ~/Users/diddy/Library/Mobile\ Documents/com~apple~CloudDocs'
I thought it was related to the escape character but it's not. I get the "No such file or directory" error.
alias cloud='cd ~/Users/diddy/Library/Mobile\ Documents/com~apple~CloudDocs'
I thought it was related to the escape character but it's not. I get the "No such file or directory" error.
For further actions, you may consider blocking this person and/or reporting abuse
Roman Agabekov -
Kemisola -
Aditya Pratap Bhuyan -
Aditya Pratap Bhuyan -
Top comments (6)
The fact that it's on two lines seems to be the problem. You can use quoting for directories with spaces:
BTW make sure that the directory actually exists :)
alias cloud='cd ~/Users/diddy/Library/"Mobile Documents"/com~apple~CloudDocs'
Still giving me the error message :-(
I got it, it's:
You have to remove the
~
at the beginning, that's an alias for/Users/diddy
alreadyor you can do
Perfect, used alias cloud='cd ~/Library/"Mobile Documents"/com~apple~CloudDocs' and it finally worked.
Thank you 🤝
Try replacing
~
with$HOME
.Sorry for the typos.