RM无法正常工作,输出MV:非法选项-B

发布于 2025-01-22 09:57:15 字数 229 浏览 4 评论 0原文

我在iterm2中使用Monterey和Ohmyzsh,RM -RF(NOR -RF)不起作用,输出MV:非法选项 - b。什么是一个很好的CLI方法?

编辑:我过去曾使用删除来删除MBP上的文件。我相信它隐含地要求MV在引擎盖下进行工作。自从我在过去几个月中我从事的最后一个项目以来,这已经停止运作。它可能与sudo许可(I Dunno),蒙特雷有关,或者可能与Oh-my-Zsh有关。在这一点上,我只是在寻找方向来寻找答案。

I'm using Monterey and ohmyzsh in iterm2 and rm -rf (nor -Rf) is not working and outputs mv: illegal option -- b. What is a good cli way to do this?

Edit: I have used remove in the past to remove files on a MBP. I believe it implicitly calls mv to do the work under the hood. This has since stopped functioning since my last project I have worked on in the past few months. It may have to do with sudo permissions (I dunno), Monterey, or it may possibly have to do with oh-my-zsh. At this point I was just looking for direction to look for an answer to look towards.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

秉烛思 2025-01-29 09:57:15

在编辑了我的原始问题之后,我将回到发布该命令rm -rf file_to_delete今天工作。很高兴知道我们可以在哪里找到解释这一点的文档。

After editing my original question I am coming back to post that command rm -rf file_to_delete works today. It would be nice to know where we could find documentation that explains this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文