I am writing a bash script which shows all large files in your System. I received an error message when i tried to find anything in ~/Library, ~/System, ~/.Trash and ~/Pictures but i also got one when i try to search in ~/Documents folder. Even if i rum my script as root user.

The find command in my script:

find /Users/fabian -type d \( -path /Users/fabian/Library -o -path /Users/fabian/System -o -path /Users/fabian/.Trash -o -path /Users/fabian/Pictures \) -prune -o -size +10G -print 

The output:

find: /Users/fabian/Documents: Operation not permitted 

Is this happening because my Document folder automatically uploads everything to the ICloud?

Do you know why this is not possible Or even better how to fix it?

Best regards fabian

4

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy