【Linux】 初探Linux 中 cp 命令报错 “omitting directory ‘textCollection’” 解决方案
大家好 我是寸铁👊
【Linux】 初探Linux 中 cp 命令报错 “omitting directory ‘textCollection’” 的解决方案✨
喜欢的小伙伴可以点点关注 💝
前言
今天在
cp
文件夹的时候报错了,下面看看怎么回事
报错如下:
具体如下:
cp textCollection/ /home/textCollection-1
cp: omitting directory ‘textCollection’
解决方案
这个错误消息通常表示
textCollection
不是一个文件,而是一个目录。cp 命令默认情况下只复制文件,而不会复制目录。如果希望复制整个目录及其内容,我们需要使用-r
或--recursive
选项。
cp -r textCollection/ /home/textCollection-1
成功解决!!!
往期好文💕
保姆级教程
【保姆级教程】Windows11下go-zero的etcd安装与初步使用
【保姆级教程】Windows11安装go-zero代码生成工具goctl、protoc、go-zero
【Go-Zero】手把手带你在goland中创建api文件并设置高亮
报错解决
【Go-Zero】Error: user.api 27:9 syntax error: expected ‘:‘ | ‘IDENT‘ | ‘INT‘, got ‘(‘ 报错解决方案及api路由注意事项
【Go-Zero】Error: only one service expected goctl一键转换生成rpc服务错误解决方案
【Go-Zero】【error】 failed to initialize database, got error Error 1045 (28000):报错解决方案
【Go-Zero】Error 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using password: YES)报错解决方案
【Go-Zero】type mismatch for field “Auth.AccessSecret“, expect “string“, actual “number“报错解决方案
【Go-Zero】Error: user.api 30:2 syntax error: expected ‘)‘ | ‘KEY‘, got ‘IDENT‘报错解决方案
【Go-Zero】Windows启动rpc服务报错panic:context deadline exceeded解决方案