need to change files/dirs! chmod of course
bruce
badouglas at gmail.com
Mon Jul 29 15:41:20 UTC 2024
Hi.
Something has happened.. probably due to phat thumbs over the past few
days. I've discovered that some dirs/files have had the permissions
altered. i've got another "clone" that has the dirs/files for the most
part, so I can chmod as needed..
However..
I'm trying to figure out how to "ls -al" all dirs in a dir, so I can
then use the same basic cmd to chmod (when compared to the clone)
something like this:
find /etc/ -maxdepth 0 -type d -exec ls -al "{}" \;
doesn't work as it lists all in the dir...
so I'm looking to do this for "dirs" and then "files" in a given dir...
I've seen examples for recursion.. but I'm simply looking for the
same/horizontal dir..
weird that I can't get this working.. it's a 2 min deal!
thanks
More information about the ubuntu-users
mailing list