Fix: ZSH: cd: too many arguments (macOS)

If on the Zsh shell on the macOS Terminal, you get an error "cd: too many arguments" then the reason for it is that you provide multiple arguments to the cd command while it can have only one argument.

Example:

% cd ~/Library/Application Support/Google Chrome

cd: too many arguments

Fix:

    All you need to do is wrap the path within double quotes if there are spaces in the path.

    % cd "~/Library/Application Support/Google Chrome"
    zsh - cd- too many arguments

    Comments & Discussion

    Facing issues? Have questions? Post them here! We're happy to help!