Javatpoint Logo
Javatpoint Logo

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.





Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


B.Tech / MCA