[Linux command six] CP command

Create the following directory structure:

.
└── d1
    ├── d10
    │   └── scheduler-center.log
    └── result.json

 

1. Execute the following command

cp d1 d2

Then an error is reported, cp: The directory "d1" is skipped, and there is no d2 directory in the current directory

 

2. cp -r d1 d2

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326653661&siteId=291194637