When you copy a folder on a Linux system, you are prompted as follows: Shell Code cp:omitting directory ' foldera/' where Foldera is the name of the folder I want to replicate, the reason for this warning is that there is still a directory under the Foldera directory, so it cannot be copied directly. Www.2cto.com Workaround:
Using a recursive copy, add the-r parameter to the CP command, like this: Shell code [[email protected] opt]# cp-r Foldera FOLDERC Here the-R represents the meaning of recursion. Similarly, when we delete the directory under the Linux system, we also need to add the-r parameter, if the directory is empty, it will be deleted directly, if the directory is not empty, it will be cascade deleted. However, there is also a problem when cascading delete is that if there are many files or subdirectories under the directory, the system will be prompted one at a time. You can use the RM-RF command if you want to remove it without prompting. F is force's meaning, represents mandatory deletion, no hint!
Linux system cp:omitting directory ' XXX ' problem solving