To copy multiple files into a directory, use cp with a list of source files as the first arguments, and the destination directory as the last argument. Here, we copy the files file1.txt and file2.txt into the same directory.

cp file1.txt file2.txt my_directory/

Note that you can access the layout of the filesystem here.



For this exercise, we need to start in the movies/ directory. Use pwd to check where you are. If you aren’t in the movies/ directory, you can use the command cd /home/ccuser/workspace/movies to quickly get there. As you move to the correct file path, ignore any errors that pop up.

Once you are in movies/, copy drama/biopic/ray.txt and drama/biopic/notorious.txt into the drama/historical/ directory.


Using a single ls command, look at the contents of the historical/ directory.

Sign up to start coding

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?