Manipulation - Wildcards

The intro " In addition to using exact filenames as arguments, we can use special characters like * to select groups of files. These special characters are called wildcards. For example, here we use cp to copy all files in the current working directory into another directory."

On exercise 5. it asks:
" Switch to the satire/ directory and list its contents (don’t use any options with ls).

Check your progress with Check Work."

(Now i did all the 4 exercises marked green.)

Now i am stuck on number 5.
The output states: " Did you move to the satire/ directory and run ls without any options?"

pwd: /home/ccuser/workspace/movies/comedy
ls: satire shrek.txt the-office.txt waterboy.txt zoolander.txt
cd satire
ls
fight-club.txt shrek.txt the-office.txt waterboy.txt zoolander.txt

So i switched to the satire directory and listed the contents with ls.

But the ouput keeps says the same: " Did you move to the satire/ directory and run ls without any options?"

There are no hints in the terminal.

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

1 Like

I have the exact same issue with another exercise, whatever I do I cannot get past the “Did you move to the comedy/slapstick/ directory and run ls without any options?” although I’m sure every step I took is correct.

I’ve tried cd comedy/slapstick/. as well, and nothing seems to work. Did you manage to get over that one?

1 Like

I don’t understand why it doesn’t work

Hey! You can follow these steps.

  1. Move back to /home/ccuser/workspace/movies/comedy
  2. Type ‘ls’ you should see satire, slapstick, etc.
  3. From there cp z*.txt will allow you to copy the letter z to select all files in the working directory starting with “z”.
  4. Change to satire directory using cd satire

You should now see the text file in the correct place.