Learn
Manipulation
cp Part II

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.

Instructions

1.

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.

2.

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

Folder Icon

Sign up to start coding

Already have an account?