Why can't I cd into this directory?

cd, macos, terminal, unix

Solution

You are calling `cd` with two arguments, `Prog` and `16.1`. You need to call it with just one argument, `Prog 16.1`. To do this, you need to "quote" the space in the middle, so that it doesn't get interpreted as separating two arguments. Here are a few options:

- `cd 'Prog 16.1'`

- `cd Prog' '16.1`

- `cd "Prog 16.1"`

- `cd Prog" "16.1`

- `cd Prog\ 16.1`

Problem

I'm trying to cd into a directory, but the terminal says it doesn't exist even though it does.

Original source