Linux you want to copy files, cp: omitting directory solutions

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/qq_32281471/article/details/91347833

Direct copying files

Copy all files within the folder to the dist dist1

> cp dist/* ../dist1/

Will appear

cp: omitting directory XXX

Solution

Plus -r, you can successfully copied

> cp dist/* ../dist1/ -r

If you want to dist folder into dist1

> cp dist/ ../dist1/ -r

Public concern number lxfriday_xyz, Ji Song technical information

lxfriday_xyz

Guess you like

Origin blog.csdn.net/qq_32281471/article/details/91347833