首页> 开发问题 >服务器问题 服务器问题
cp: omitting directory `/www/yingcaizhibo/filespath/flash'复制文件出错
作者:小萝卜 2019-09-16 【 Linux 】 浏览 1159
简介在使用cp命令cp /www/yingcaizhibo/filespath/flash /shuju/beifen/flash 时报错,让我们来看看怎么解决吧。
在linux下拷贝的时候有时候会出现cp:omitting directory的错误 。
报错如下:
cp: omitting directory `/www/yingcaizhibo/filespath/flash'
说明flash目录下面还有目录,不能直接拷贝
解决办法:递归拷贝 命令:cp -r bbs ../backup/bbs 解释:-r 这个options是递归的意思
cp -r /www/yingcaizhibo/filespath/flash /shuju/beifen/flash
举一反三:
删除的时候也可能出现这种下面有文件不能删除的问题 也用-r 级联删除
chmod赋予权限的时候想级联也可以用-R 注意是大写的R
很赞哦! (0)
相关文章
- 网页提示错误(net::ERR_EMPTY_RESPONSE)
- The program 'yum' is currently not installed. You can install it by typing:
- yum执行时Another app is currently holding the yum lock; waiting for it to exit... The other application is: yum
- MySQL报错: SQLSTATE[HY000]: General error: 1030 Got error 28 from storage engine解决办法
- MySQL报错:which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mod
- 什么情况:IP address '142.252.250.174' could not be resolved: ??֪?????????????? For more information
- IIS7.0运行PHP报错"php-cgi.exe - FastCGI 进程意外退出"
- 可以ping通虚拟机但不能telnet 9000端口
- polkit pkexec 本地提权漏洞(CVE-2021-4034)解决办法
- 重启服务器之后 网站报错SQLSTATE[HY000] [2002] Connection refused