cp (Copy)
0%

Command Line · Lesson 10

cp (Copy)

Learn how to copy files and directory trees while controlling overwrites and preserved attributes.

The cp command copies files and directories while leaving the source in place. Its basic syntax is:

cp [OPTIONS] SOURCE DESTINATION