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  Linux: How to Append to a File using `cat` with Examples
Photo of author
As Editor in Chief of HeatWare.net, Sood draws on over 20 years in Software Engineering to offer helpful tutorials and tips for MySQL, PostgreSQL, PHP, and everyday OS issues. Backed by hands-on work and real code examples, Sood breaks down Windows, macOS, and Linux so both beginners and power-users can learn valuable insights.

Leave a Comment