On 7/29/24 9:42 AM, bruce wrote:
I'm looking to update the permissions of a bunch of folders within a dir (not recursively), but I'd like to display the dirs prior to making changes -- measure twice, then cut. find /etc/*/ -maxdepth 0 -type d -exec ls -dal {} \; --seems to display the list of dirs for the test folder...
This is rather excessive for what you're trying to do. ls -ld /etc/*/ would do the same thing.
I can then find /etc/*/ -maxdepth 0 -type d -exec chmod XXX {} \; (which would match what the dirs are from a cloned system..)
chmod XXX /etc/*/ But I hope you aren't actually doing this in /etc. -- _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue