Bloc de code:
ls: .: Operation not permitted
As tu essayé ? Sequoia 15.3.1
Il faut donner au terminal un accès complet au disque :

Cannot ls ~/.Trash in the Terminal in Catalina (operation not permitted)
Ever since buying a new Mac, which has forced me to upgrade to Catalina, I cannot view the Trash folder in the Terminal. ls ~/.Trash just gives ls: .Trash: Operation not permitted. So does sudo ls ~/.
Donc pour vider la corbeille, qui était la question initiale, on commence par donner les droits nécessaire au terminal et on refait un rm qui va bien