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  Find large files on Linux: 5 Command-line Examples

Leave a Comment