Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How do you change the access permission (add group read/write) to all the files in the current directory containing the word "test"

share|improve this question

migrated from stackoverflow.com Jan 4 '11 at 8:20

This question came from our site for professional and enthusiast programmers.

1 Answer 1

You could use:

chmod g+rw *test* .*test*


find -maxdepth 1 -name '*test*' -exec chmod g+rw {} +
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.