Help for command line lesson 2 part 5/10


#1

At question 5 of part five, they want me to cp a file but when I type. They say either the file doesn't exist, or cannot create regular file...... Help

$ cd drama/historical/ to drama/
bash: cd: drama/historical/: No such file or directory
$ cp biopic/ray.txt biopic/notorious.txthistorical/
cp: cannot stat ‘biopic/ray.txt’: No such file or directory
$ cd ..
$ cp biopic/ray.txt biopic/notorious.txthistorical/
cp: cannot create regular file ‘biopic/notorious.txthistorical/’: Not a directory

Can someone help? Am I doing this wrong?


#2

To move around in a file structure, you need to know where you are and where the files/directories that you are looking for are.

  • use pwd (print working directory) to find out where you are now
  • use ls to see what files and directories exist is the directory that you are in

Take a few minutes to learn what files/directories you are dealing with.

You have tried to move up one directory with this command:

$ cd drama/historical/ to drama/

Remember when we learned about using cd .. to move up on directory?

Have another go at this and let us know how you got on.


#3

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