Solve the CentOS "cp: omitting directory 'autoinstall _ 20150305" error
System Environment: CentOS 6.5
Copy the written program to the desktop. The following prompt is displayed during running:
Check that the folder contains a lock. Considering the permission issue, try to copy the file to the "/opt" directory and the result is "cp: omitting directory 'autoinstall _ 100' "error.
The cp: omitting directory error sometimes occurs during linux copy. It indicates that the directory contains subdirectories and cannot be copied directly.
Solution: recursive Copy command: cp-r AutoInstall_20150305/opt
Explanation: the options of-r indicates recursion.
To put it another way: When you delete a file, you may also find that the following file cannot be deleted. You can also use-r cascade deletion.
If you want to cascade A chmod instance when granting permissions, you can use-R to note that it is in uppercase.