The -r option (or --recursive) in the cp command stands for "recursive." It is used to copy directories and all their contents, including subdirectories and files.
Purpose:
- Copy Entire Directory Structures: When you use the
-roption, the command will duplicate the specified directory along with everything inside it.
Example Usage:
cp -r source_directory destination_directory
This command copies source_directory and all its contents to destination_directory.
If you have any further questions or need more details, feel free to ask!
