Bird
0
0

Which command correctly applies the setgid bit to a directory named data using symbolic notation?

easy📝 Syntax Q3 of 15
Linux CLI - File Permissions and Ownership
Which command correctly applies the setgid bit to a directory named data using symbolic notation?
Achmod +t data
Bchmod u+s data
Cchmod o+s data
Dchmod g+s data
Step-by-Step Solution
Solution:
  1. Step 1: Identify setgid symbolic notation

    The setgid bit is set using g+s in symbolic mode.
  2. Step 2: Match command to directory

    Applying chmod g+s data sets the setgid bit on the directory named data.
  3. Final Answer:

    chmod g+s data -> Option D
  4. Quick Check:

    Setgid bit uses g+s symbolic mode [OK]
Quick Trick: Setgid bit is set with g+s symbolic mode [OK]
Common Mistakes:
MISTAKES
  • Using u+s which sets setuid instead
  • Using o+s which is invalid for setgid
  • Confusing sticky bit (+t) with setgid

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes