FAQ: Navigation - ls

This community-built FAQ covers the “ls” exercise from the lesson “Navigation”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Computer Science
Web Development
Build a Website with HTML, CSS, and Github Pages
Create a Front-End App with React

Learn the Command Line

FAQs on the exercise ls

There are currently no frequently asked questions associated with this exercise – that’s where you come in! You can contribute to this section by offering your own questions, answers, or clarifications on this exercise. Ask or answer a question by clicking reply (reply) below.

If you’ve had an “aha” moment about the concepts, formatting, syntax, or anything else with this exercise, consider sharing those insights! Teaching others and answering their questions is one of the best ways to learn and stay sharp.

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!
You can also find further discussion and get answers to your questions over in Language Help.

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head to Language Help and Tips and Resources. If you are wanting feedback or inspiration for a project, check out Projects.

Looking for motivation to keep learning? Join our wider discussions in Community

Learn more about how to use this guide.

Found a bug? Report it online, or post in Bug Reporting

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

I don’t understand

The directories blog , test , and the file index.js are the contents of the current directory.

We are in the “blog” folder. but I don’t see the other two strings (test and index.js) anywhere. what’s up with that? What am I missing?

1 Like

Hi, I am a beginner as well, but I assume that there was an update to this lesson (since I had the same issue) and it was unfortunately forgotten that the old directories and files (that might have been used previously in the lesson), namely blog , test , and the file index.js needed to also be replaced to 2014, 2015 and hardware.txt.

2 Likes

I don’t understand what is wrong here. And it doesnt let me to move on without it.

1 Like

Hey there, @core1360197931. Welcome to the forums!

I believe you’re typing Is, as in “Isadora”.

It should be ls, as in “list”.


I understand it can be confusing due to how it appears on the screen.

So try LS (in lowercase), see if that works for you.

6 Likes

Yessss, thank you :slight_smile:

1 Like

Instead is Is, it is suppose to be LS (in lowercase form) to represent “lists”.

1 Like

I get:

$ ls
2014  2015  hardware.txt

NOT:

$ ls
blog  index.js  test

Have I done something wrong?

These are the contents of the blog directory.


The directories blog , test , and the file index.js are the contents of the current directory.

No, it looks like what you’ve done is correct. The instructions state that those three files/directories should are contained in the current directory. blog and test are directories, while index.js is a JavaScript file.


You can reference the filesystem for this lesson here.

1 Like

Yes this resolves it, thank you great explanation.

1 Like

thanks i was typing number 1 and then S as a letter

1 Like

This lesson says that dollar sign is the shell prompt - my computers terminal has a “%” instead of a dollar sign - im assuming its the same thing, but I haven’t been able to find much online to confirm my assumption - would anyone be able to shed some light on this issue

How is this possible? That Blog, Test and index.js are contained in the current directory and not listed?

Maybe the course was updated and that section wasn’t, don’t you think?

I no longer have PRO so I can’t try it out for myself, but using the ls command from the directory you’re initially in should show you that blog, test, and index.js are in the current directory according to the instructions. If they aren’t, then it’s probably a bug. Seeing 2014, 2015, and hardware.txt means you’re in the blog directory. According to the instructions, users should be starting in blog's parent directory. Not sure if they really do though.

1 Like

I get your point. However, the test solely leverages the blog directory … doesn’t it? And Going beyond or out of that directory would be out of scope of the test.

While it is true that this lesson focuses mainly on the contents of the blog directory, the concept being taught in this specific exercise is that ls displays the contents of the current directory. This is applicable no matter which directory you’re in. I read through the other replies in this topic, and it looks like several users have this problem. I’ll submit a bug report.

1 Like

Hi I have the same issue, but I’m sure that I type “is” as in list, and is still isn’t working (( I work on Windows

1 Like

Hi,
I have the same issue with the navigaton Is exercise. I tried; Is, 1s, LS but nothing is working and is giving me this error ‘Bash: Is: command not found’.
Is this a bug?

I can’t get past the first thing i keep trtying to do next ot the terminal $ “one” but its dosen’t work
In the terminal, after the $ , type:
.