我想列出 macOS Catalina 上目录中的所有文件~/Downloads。当我执行时,ls出现以下错误:
ls
ls: .: Operation not permitted
Run Code Online (Sandbox Code Playgroud)
ls命令适用于其他目录(桌面、文档等):
问题是什么?我该如何修复它?
drwx------ 2 subdan staff 64 Feb 17 2020 Applications
drwx------@ 7 subdan staff 224 Sep 21 20:04 Desktop
drwx------@ 14 subdan staff 448 Sep 21 18:24 Documents
drwx------@ 7 subdan staff 224 Sep 21 19:54 Downloads
drwx------@ 77 subdan staff 2464 Sep 21 10:11 Library
drwx------+ 10 subdan staff 320 Jun 12 17:18 Movies
drwx------+ 6 subdan staff 192 Jun 12 17:18 Music …Run Code Online (Sandbox Code Playgroud)