We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Copy

The copy command does what you would (hopefully) expect: it copies a file from one location to another.

cp source_file.txt destination/

You can also copy a directory and all of its contents recursively by adding the -R flag:

cp -R my_dir new_dir

On most Linux systems, the -r and -R flags for cp both mean "recursive." We used lowercase -r with rm earlier and uppercase -R here, but either will work for recursive copy on most distros.

Assignment

Don't run it with the recursive option unless you want your browser tab to get stuck in an infinite loop.

Submit the shell checks.