Solve the CentOS "cp: omitting directory 'autoinstall _ 20150305" error

Source: Internet
Author: User

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.

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.