How to Find Files Owned by Group(s) in Linux

bash arguments, pass parameter, pass argument to script

Here is powerful and simple use for the Linux find command – finding files or folders by one or more groups. Let’s get right onto the examples:

Find files by group students

find -type f . -group students

Find folders/directories by group students

find -type d . -group students

Find files by groups student and teachers

find -type f . -group students -o -group teachers

Find folders/directories by groups students and teachers

find -type d . -group students -o group teachers

If you have any questions, please post a comment!

See also  How to Use Tar to Archive and Extract Files in Linux: A Step-by-Step Guide

Leave a Comment