chgrp - Change Group in Linux

From the Linux Essential Commands cheat sheet · File Permissions & Ownership · verified Jul 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 Essential Commands

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

More Linux tasks

Back to the full Linux Essential Commands cheat sheet