nerdexam
CompTIA

XK0-005 · Question #10510

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?

The correct answer is D. chmod 1755 devops. The command that will set the sticky bit on a directory called devops with 755 file permission is chmod 1755 devops. This command will use chmod to change the mode of the directory devops to 1755, which means that the owner has read, write, and execute permissions (7), the…

System Management

Question

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?

Options

  • Achown -s 755 devops
  • Bchown 1755 devops
  • Cchmod -s 755 devops
  • Dchmod 1755 devops

How the community answered

(53 responses)
  • A
    11% (6)
  • B
    9% (5)
  • C
    4% (2)
  • D
    75% (40)

Explanation

The command that will set the sticky bit on a directory called devops with 755 file permission is chmod 1755 devops. This command will use chmod to change the mode of the directory devops to 1755, which means that the owner has read, write, and execute permissions (7), the group has read and execute permissions (5), and others have read and execute permissions (5). The first digit 1 indicates that the sticky bit is set on the directory, which is a special permission that prevents users from deleting or renaming files in the directory that they do not own.

Topics

#Linux Permissions#Sticky Bit#chmod#File System Management

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice