Command results in "No such file or directory" can't proceed


#1



https://www.codecademy.com/en/courses/learn-the-command-line/lessons/manipulation/exercises/cp-ii?action=lesson_resume&link_content_target=interstitial_lesson


bash: cd: ../..comedy: No such file or directory



#2

check your command carefully


#3

Oops yes, re-typed. Still same issue.
See screenshot.


#4

If you get that error message then first of all you should check the directory where you are now.(command pwd)

now consider should it work?


#5

Am I in the wrong directory? Please see attached.
Which directory should I be in, and what's the exact command to get to the proper directory?


#6

you are in movies so now if you command like

cd ../

then you'll go to workspace (parent directory).
and if you command like

cd ../../

then you'll go to ccuser(parent directory/parent directory).now here you are trying to search comedy directory.

see you file tree structure

you can be anywhere.it's not the problem.but your command should be according to your position.
so you are in movies and you want to go to comedy.then simply your command should be

cd comedy

suppose you are in drama and now you want to go to comedy.then your command should be

cd ../comedy

First you have to go to parent directory that is movies and then you can go to comedy.


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.