Bird
0
0

Which of the following best describes the function of the chgrp command in Linux?

easy📝 Conceptual Q1 of 15
Linux CLI - File Permissions and Ownership
Which of the following best describes the function of the chgrp command in Linux?
AIt changes the group ownership of a file or directory.
BIt changes the user ownership of a file or directory.
CIt modifies file permissions for the group.
DIt creates a new group on the system.
Step-by-Step Solution
Solution:
  1. Step 1: Understand chgrp purpose

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

    Changing user ownership is done by chown, permissions by chmod, and group creation by groupadd.
  3. Final Answer:

    It changes the group ownership of a file or directory. -> Option A
  4. Quick Check:

    chgrp changes group ownership [OK]
Quick Trick: chgrp changes group ownership only [OK]
Common Mistakes:
MISTAKES
  • Confusing chgrp with chown
  • Thinking chgrp changes permissions
  • Assuming chgrp creates groups

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes