How to solve the omitting directory error when copying files in Linux?

  
                

A cp:omitting directory error window may appear when copying files under Linux. This is caused by incorrect path to copy files. For example, the user copies the file to the bbs directory, and the bbs can only be the directory and not the file, it will prompt cp:omitting directory “bbs”

cp:omitting directory Error Resolution:

Look at the folder with a lock, considering the possibility of permission, then try to copy the file to the directory of “/opt” The result is an error of "cp: omitting directory `AutoInstall_20150305’”".

copies in linux when sometimes appear cp: omitting directory error, indicating that the directory has the following subdirectories, you can not directly copy.

Workaround: Recursive copy Command: cp -r AutoInstall_20150305 /opt.

Explanation: -r This option is recursive.

TELL: Delete this can occur when there is a problem the following files can not be deleted with the -r delete cascade.

When you give permission to chmod, you can also use -R to note that it is uppercase R.

If you encounter a cp:omitting directory error while copying a file, you can avoid the above problem by adding a -r to the recursive copy after copying the command.

Copyright © Windows knowledge All Rights Reserved