Change Group if the Original Group is XYZ

To change the group recursively of files and folders only if the original group is a certain value, you can use the following (replace “yournewgroup”, “youroldgroup”, and “/path/to/wherever” to your own values).

chown :yournewgroup --from=:youroldgroup -R /path/to/wherever
0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments