`cp -t` 发生了什么? [英] What happened to `cp -t`?

查看:43
本文介绍了`cp -t` 发生了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读一些使用通配符从目录复制文件但不包括一个文件的方法,我看到 cp -tcp -t 结合使用时发挥作用代码>查找.但是,每当我尝试运行 cp -t 时,都会得到 cp:非法选项 -- t,这对我来说意味着未实现提供的标志.这是在较新版本的 bash 中删除的内容吗?有关其他信息,我使用的是 macOS Catalina.

I was reading up some ways of copying files from a directory with the use of a wildcard operator but excluding one file, and I saw that cp -t came into play when used in conjunction with find. However, whenever I try to run cp -t, I get cp: illegal option -- t, which to me means that the flag supplied is not implemented. Is this something that was taken out in more recent versions of bash? For some additional information, I am on macOS Catalina.

推荐答案

cp -t 发生了什么?

我使用的是 macOS Catalina.

I am on macOS Catalina.

您正在阅读 GNU 版本的 cp 来自 GNU coreutils 具有 -t 选项作为扩展.而且 macOS 有自己的标准 utils 版本,macOS cp 没有没有 -t.

You were reading GNU version of cp from GNU coreutils that has -t option as an extension. And macOS has its own versions of standard utils and macOS cp doesn't have -t.

这是在较新版本的 bash 中删除的内容吗?

Is this something that was taken out in more recent versions of bash?

cp 不是内置命令,也不是 bash 的一部分.

cp isn't a builtin command, it's not part of bash.

这篇关于`cp -t` 发生了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆