Skip to main content
Linux AdministrationMediumMultiple Choice

Linux Administration Question

Statement

Which of the following commands set the sticky bit for the directory /tmp? (Choose TWO correct answers.)

#sticky bit#chmod#permissions#1775
A

chmod +s /tmp

B

chmod +t /tmp

Correct
C

chmod 1775 /tmp

Correct
D

chmod 4775 /tmp

E

chmod 2775 /tmp

Resolution & Explanations

The sticky bit can be set using chmod +t (symbolic) or by setting the first digit to 1 in octal notation (e.g., chmod 1775).