简体   繁体   English

如何在 Mac 终端上查找文件

[英]how to Find files on Mac Terminal

there is a file I have to find, context.xml .我必须找到一个文件context.xml I tried find / -name context.xml on terminal, but I got many Permission denied .我试过find / -name context.xml在终端上,但我得到了很多Permission denied

Then I tried sudo find / -name context.xml , and I was told to enter password.然后我尝试了sudo find / -name context.xml ,并被告知输入密码。 After entering that password, I still got many Operation not permitted .输入该密码后,我仍然有很多Operation not permitted

I also tried to restart my Mac, then tried that two commands.我还尝试重新启动我的 Mac,然后尝试了这两个命令。 But, still the same error.但是,仍然是同样的错误。 Could anyone help me out?谁能帮帮我? Thanks.谢谢。

Even if you do sudo, the Terminal application itself may not have sufficient privileges on newer versions of MacOS.即使您执行 sudo,终端应用程序本身也可能在较新版本的 MacOS 上没有足够的权限。 See https://osxdaily.com/2018/10/09/fix-operation-not-permitted-terminal-error-macos/ for more details.有关更多详细信息,请参阅https://osxdaily.com/2018/10/09/fix-operation-not-permitted-terminal-error-macos/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM