Linux系统cp:ommiting directory xxx问题解决

在linux系统中复制文件夹,执行命令     cp  ~/porting_x210/uboot_samsung/u-boot-samsung-dev/ ./

提示如下:

出现该警告的原因是:要复制的是文件夹,文件夹下还有文件夹,所以不能直接复制

解决办法:使用递归拷贝,在cp命令后面加上-r参数,形如:

cp -r ~/porting_x210/uboot_samsung/u-boot-samsung-dev/ ./

这里的-r代表递归的意思。

猜你喜欢

转载自blog.csdn.net/weixin_42445727/article/details/81287697
今日推荐