Cp: ​​omitting directory Error explanation and solution

  

When copying the directory under linux, the cp:omitting directory error occurs, such as cp:omitting directory "bbs", which means there is a directory under the bbs directory. Can not be copied directly.

Workaround:

Recursive copy using the parameter -r, command:

$cp -r bbs ../backup/bbs

Explain: -r This option is to use the recursive method

#3>

When deleting the directory, there may be such a problem that there are multiple levels of directories that cannot be deleted. -r parameter cascading delete

$rm -r bbs

When chmod assigns permissions to a directory, you can also use the -R parameter if you want to cascade. Note that the uppercase R

Copyright © Windows knowledge All Rights Reserved