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.



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.

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA