Search code examples
macosunixterminalcd

Why can't I cd into this directory?


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


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