Bird
0
0

What is the correct command to change the group of the file example.txt to developers?

easy📝 Syntax Q3 of 15
Linux CLI - File Permissions and Ownership
What is the correct command to change the group of the file example.txt to developers?
Achgrp example.txt developers
Bchgrp developers example.txt
Cchown developers example.txt
Dchmod developers example.txt
Step-by-Step Solution
Solution:
  1. Step 1: Recall chgrp syntax

    The syntax is chgrp [group] [file].
  2. Step 2: Apply to example

    To change the group to developers for example.txt, use chgrp developers example.txt.
  3. Final Answer:

    chgrp developers example.txt -> Option B
  4. Quick Check:

    Syntax is chgrp group file [OK]
Quick Trick: chgrp group file [OK]
Common Mistakes:
  • Swapping file and group arguments
  • Using chown instead of chgrp
  • Using chmod which changes permissions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes