How to merge directories under Linux

\cp -Rf To merge directories with the same name under the parent directory of the target directory     


The f parameter is to avoid prompting whether to overwrite the file

There is also a "\" symbol before cp because the c p command uses the -f parameter, and still prompts whether to overwrite the file, because the alias of the cp command is cp -i, and the -i parameter indicates that there is an interactive prompt, so Entering cp -Rf directly does not clear the prompt. Add "\" before the cp command, or use the absolute address of the cp command to ensure that no prompts appear.


{{o.name}}
{{m.name}}

Guess you like

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