Linux for Developers
/Beginner
chgrp
Definition
Change Group. A command specifically used to change the group ownership of a file or directory, without affecting the user ownership.
Explain Like I'm New
Changing which team is allowed to use a file, without changing the individual who owns it.
Real World Example
You create a project file. You want your entire engineering team to be able to edit it. You run `chgrp engineers project.txt`.
Common Use Cases
- •Managing team access to shared folders
Interview Questions
basic
- Why do people rarely use `chgrp`?
intermediate
- Can a normal user change a file's group to a group they are NOT a member of?