Home » Linux cp -r command

Linux cp -r command

by Online Tutorials Library

Linux cp -r

Option ‘r’ with the copy command can be used to copy a directory including all its content from a source directory to the destination directory.

Syntax:

Example:

linux cp -r

In the above example, we have copied directory ‘library’ to the destination directory /home/sssit/Documents. Here, all the contents of ‘library’ directory including its contents have been copied to destination directory.

You may also like