Change Group Ownership of Files Using chgrp
📖 Scenario: You are managing files on a Linux system for a small team. Some files need to be assigned to a specific group so that team members can access them properly.
🎯 Goal: Learn how to use the chgrp command to change the group ownership of files.
📋 What You'll Learn
Create three empty files named
report.txt, summary.txt, and data.csvCreate a group named
teamgroupUse
chgrp to change the group ownership of the three files to teamgroupVerify the group ownership of the files using
ls -l💡 Why This Matters
🌍 Real World
System administrators often need to assign files to specific groups so that team members can share access easily.
💼 Career
Knowing how to manage file permissions and group ownership is essential for Linux system administration and security management.
Progress0 / 4 steps