System environment: CentOS6.5: Copy the written program to the desktop. the running prompt is: check the folder with a lock. Considering the permission issue, try to copy the file to & ldquo; the error "& ldquo; cp: omittingdirectory 'autoinstall _ 20150305 & rsquo; & rdquo;" is returned in the/opt & rdquo; directory. In lin
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.