Bird
0
0

What does the chgrp command do in Linux?

easy📝 Conceptual Q11 of 15
Linux CLI - File Permissions and Ownership
What does the chgrp command do in Linux?
AChanges the file name
BChanges the user ownership of a file or directory
CChanges the permissions of a file or directory
DChanges the group ownership of a file or directory
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of chgrp

    The chgrp command is specifically designed to change the group ownership of files or directories.
  2. Step 2: Differentiate from similar commands

    Changing user ownership is done by chown, and changing permissions is done by chmod. Renaming files uses mv.
  3. Final Answer:

    Changes the group ownership of a file or directory -> Option D
  4. Quick Check:

    chgrp changes group ownership [OK]
Quick Trick: Remember: chgrp = change group ownership [OK]
Common Mistakes:
MISTAKES
  • Confusing chgrp with chown (user ownership)
  • Thinking chgrp changes permissions
  • Mixing up chgrp with mv (rename)

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes