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.



Type the pwd command. Note that we’re back in the movies/ directory again.

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?