What does the -r option stand for in the context of copying directories?

QuestionsQuestions8 SkillsProBasic Files OperationsAug, 04 2025
0132

The -r option stands for "recursive" in the context of copying directories. When you use the -r option with the cp command, it allows you to copy a directory and all of its contents, including subdirectories and files, to the specified destination.

Here’s an example of how to use it:

cp -r source_directory destination_directory

0 Comments

no data
Be the first to share your comment!