exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 74 discussion

Actual exam question from CompTIA's XK0-005
Question #: 74
Topic #: 1
[All XK0-005 Questions]

A Linux engineer is setting the sticky bit on a directory called devops with 755 file permission. Which of the following commands will accomplish this task?

  • A. chown -s 755 devops
  • B. chown 1755 devops
  • C. chmod -s 755 devops
  • D. chmod 1755 devops
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
Highly Voted 1 year, 8 months ago
D. chmod 1755 devops The sticky bit is a special permission that can be set on directories, and it is represented by the number "1" in the binary representation of the file permission mode. To set the sticky bit and keep the 755 file permission, you would set the permission mode to 1755. The "chmod 1755 devops" command sets the file permission mode to 1755, which includes the sticky bit and the 755 file permissions.
upvoted 7 times
...
e418137
Most Recent 9 months ago
Also can be accomplished with `chmod +t directory_name`.
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago