Terminal cd command not functioning properly

I am using terminal to direct myself to a subfolder and when I do so I first use the command "ls" to list the contents of the directory I'm in. Next I use the command "cd" followed by a space and the name of the next folder or subfolder I would like to go into next. This all worked fine until I came to a folder I called "Current". When I type "cd Current" I am told by terminal that "cd: no such file or directory: Current". This is not true. I can see it in finder. I can even do ls on the folder containing it and it is there. How can terminal be fixed so I can change to this folder?


MacBook Pro 13", macOS 10.13

Posted on Apr 27, 2020 2:54 AM

Reply

Similar questions

2 replies

Apr 27, 2020 3:41 AM in response to SamBurdett

Perhaps the actual name of this folder contains a space or some invisible character?


Try this:


1) type "cd " in the Terminal (with a trailing space, but do NOT press enter yet)


2) drag the folder you see in the Finder onto the Terminal window.

It will add the full path to this folder. You will then be able to just press enter to cd to this folder,

but first take notice of what you see. Maybe you see a long path ending with something like "/Current\ "

(that would indicate that the name of the folder ends with a space).

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.

Terminal cd command not functioning properly

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