chgrp - Change Group in Linux

From the Linux Commands cheat sheet · File Permissions & Ownership · verified Nov 2026

chgrp - Change Group

Change group ownership of files

bash
# Change group
chgrp groupname file.txt

# Recursive
chgrp -R groupname directory/

# View current groups
groups
id
✅ Changes only group ownership (not user)
💡 Use groups command to see available groups
🔍 Alternative to chown for group-only changes
grouppermissionsownership

Continue with Linux Commands

Save the full cheat sheet or work through every related task.

More Linux tasks

Back to the full Linux Commands cheat sheet