FAQ: Manipulation - Wildcards

This community-built FAQ covers the “Wildcards” exercise from the lesson “Manipulation”.

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

Web Development

Learn the Command Line

FAQs on the exercise Wildcards

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!

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

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

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 am stuck on number 3: Navigate to the superhero/ directory.

List all files and directories in the working directory. You should see superman.txt in it.
I typed in superhero/, but the reply is : bash: superhero/: No such file or directory

What am I doing wrong?

To navigate to the superhero directory you enter the command: cd superhero
cd means change directory. Then you’ll enter ls to list all the files and directories.

Thanks for your help

1 Like

why spiderman isn’t appeared in step 3
when i type ls only batman.txt superman.txt appeard only where is spiderman.txt?

I think it’s important to note that in Step 7:

mv batman.txt spiderman.txt

The contents of batman.txt are overwriting the file contents of spiderman.txt .

batman.txt will essentially be deleted after this command.

mv batman.txt spiderman.txt
8.List all files and directories in the working directory. You should see the file batman.txt has been renamed as spiderman.txt .

i’m confused, so the mv command renamed the file to spiderman.txt?

Hey i cant find the action directory ??
Am i dumb or what XD

i am stuck on step 5 Then type

mv wonderwoman.txt batman.txt superhero/
need help

https://www.codecademy.com/courses/learn-the-command-line/lessons/command-line-manipulation/exercises/wildcards

I’m stuck on step 5 too and now I can’t go forward or back, no commands I try work

https://www.codecademy.com/courses/learn-the-command-line/lessons/command-line-manipulation/exercises/wildcards

I’m stuck on step 6. i did step five and now I can’t get out of the movies directory.

Hello @progresspanda!

Could you explain in more detail what issue you are having?

I’ve also attached the tree structure used for this lesson below. Hope it helps!

Thanks very much anyway, but I found a way to finish the lesson (after a long fight with it). I recommend someone review the instructions, because I’m sure I followed all of them the the first time and it turned into a mess.

1 Like

You can refer to the tree diagram we were given at the very beginning (https://s3.amazonaws.com/codecademy-content/courses/learn-the-command-line/img/LCL-fileTrees-02.png) or it should the child of movies/ so when in movies you can type cd action/ to move to the action directory or type cd … if you’re in a child of action/

When moving to the next step it moves us to the root directory movies, but first step wants us to move backward to complete the step as if we were in child nodes from previous exercise. This is one of the bugs

image
is this correct so far?

Hello @panosspathis and welcome to the Codecademy Forums!

It looks like you’ve moved superman.txt from the action directory into the superhero directory, so you’re good so far!

3 Likes

There’s some issues with these lessons. The lesson text thinks we’re in a different directory and expects the command cd ../ to get to target folder, in this lesson’s case, the action folder.

But because the system is looking specifically for you to type in cd ../ it won’t pass until you do, but if you do, you won’t be in the right place for the rest of the lesson.

For example, in lesson 7, your actual current working directory is the Movies folder which contains the folders:

action comedy drama genres.txt

so to get to the action folder, you would enter in cd action/ not what it suggests of cd ../

I’m also stuck on step 3, it’s not recognising my superman.txt file

Edit: Nevermind, changing to the previous directory made it pass…

2 Likes