Learn the Command Line, exercise 6 cd ll


#1

I got stuck on exercise 6. It says "Change the directory to the 2015/feb/ directory
List all files and directories in the working directory."

I typed
$cd 2015/feb/
$ ls
The box doesn't get checked and I can't move on. Can someone tell me what I'm doing wrong?


#2

Assuming that your commands were successful, the next likely explanation is that it was looking for cd ../feb to have been typed (like in their example). If so, navigate into any of 2015's children (including feb) and run that from there


#3

So, the correct line is $cd../feb
??


#4

Thanks, that seemed to work.
I indeed had to type "cd ../feb"


#5

Okay, now I'm having trouble on the next step. It says I have it right, but it doesn't show a new directory "media/"


#6


Is it supposed to look like that? Because it does not show the new directory, as it says it should in the instructions.


#7

Why would it? You changed directory

If it's difficult or even just annoying to keep track of the current directory, you can put it in the prompt by doing:

PS1="\\W $ "

(to make persistent that line would need to be added in ~/.bashrc


#8

Okay. Thanks :slight_smile:


#9

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