为什么linux cp -r -a -R -P命令不能复制目录结构?
/tmp/backupTemp目录是存在的但是/tmp/backupTemp/etc/rc.d不存在为什么不能自动创建却报错了?[qyj@A~]$sudocp-a/etc...
/tmp/backupTemp目录是存在的 但是/tmp/backupTemp/etc/rc.d不存在为什么不能自动创建却报错了?[qyj@A ~]$ sudo cp -a /etc/rc.d/rc.local /tmp/backupTemp/etc/rc.d/rc.localcp: cannot create regular file `/tmp/backupTemp/etc/rc.d/rc.local': No such file or directory[qyj@A ~]$ sudo cp -a /etc/rc.d/rc.local /tmp/backupTemp/rc.local[qyj@A ~]$ sudo cp -P /etc/rc.d/rc.local /tmp/backupTemp/etc/rc.d/rc.localcp: cannot create regular file `/tmp/backupTemp/etc/rc.d/rc.local': No such file or directory[qyj@A ~]$ sudo cp -r /etc/rc.d/rc.local /tmp/backupTemp/etc/rc.d/rc.localcp: cannot create regular file `/tmp/backupTemp/etc/rc.d/rc.local': No such file or directory[qyj@A ~]$ sudo cp -R /etc/rc.d/rc.local /tmp/backupTemp/etc/rc.d/rc.localcp: cannot create regular file `/tmp/backupTemp/etc/rc.d/rc.local': No such file or directory[qyj@A ~]$ sudo cp -p /etc/rc.d/rc.local /tmp/backupTemp/etc/rc.d/rc.local
展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询