Listing Desktop files in Terminal.app, on macOS Big Sur

Up to macOS Catalina I was able to manage files in Desktop form the command line (Terminal.app). It was useful, as I had fast access to them either from the GUI and from the terminal (for example to copy to other hosts through scp).

In macOS Big Sur, any attempt to access files it the Desktop folder, even listing the folder, results in "Operation not permitted.".


How can I enable Terminal.app access to the Desktop folder?

Mac mini, macOS 11.5

Posted on Aug 24, 2021 4:33 PM

Reply
Question marked as Top-ranking reply

Posted on Aug 24, 2021 4:37 PM

Give Terminal Full Disk Access in Security & Privacy System Preferences, Privacy tab.

3 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Listing Desktop files in Terminal.app, on macOS Big Sur

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.