zsh: number expected

after doing ls at the terminal I see a drive called iCloud Drive (Archive)

so I do this command cd iCloud Drive (Archive)

and I get this result zsh: number expected

MacBook Air (M2, 2023)

Posted on Dec 10, 2023 5:00 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 10, 2023 5:07 AM

The shell splits arguments with white space. Escape the spaces with \ or enclose the folder name in double quotes.

6 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

zsh: number expected

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.