Solve the CentOS "cp: omittingdirectory" AutoInstall _ 20150305 "error

Source: Internet
Author: User
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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.