

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: What Is a Filesystem?
incomplete
2: Filepaths
incomplete
3: Parent Directories
incomplete
4: Absolute vs. Relative Paths
incomplete
5: Files
incomplete
6: Tab Completion
incomplete
7: head and tail
incomplete
8: More and Less
incomplete
9: Touch
incomplete
10: Directories
incomplete
11: Move
incomplete
12: Remove
incomplete
13: Copy
incomplete
14: Home
incomplete
15: Grep
incomplete
16: grep Multiple Files
incomplete
17: Find
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
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.
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.