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  Simplify Linux Security with a Permissions Calculator | Learn 'chmod' Command

Support us & keep this site free of annoying ads.
Shop Amazon.com or Donate with Paypal

Leave a Comment