将一个文件夹test 复制到地址/opt/tmp下,提示出错:

cp: omitting directory `test/'

原因:

test

目录下还有目录,不能直接进行拷贝。 

我们先找下cp 的命令帮助,输入cp --help .
 

解决方案:使用cp -r test/ /opt/tmp

相关文章:

  • 2021-07-29
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2022-12-23
猜你喜欢
  • 2021-08-22
  • 2021-09-25
  • 2021-08-17
  • 2021-07-09
  • 2021-08-29
  • 2021-10-10
  • 2021-11-06
相关资源
相似解决方案