exam questions

Exam XK0-005 All Questions

View all questions & answers for the XK0-005 exam

Exam XK0-005 topic 1 question 79 discussion

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

A Linux administrator needs to correct the permissions of a log file on the server. Which of the following commands should be used to set filename.log permissions to -rwxr—r--. ?

  • A. chmod 755 filename.log
  • B. chmod 640 filename.log
  • C. chmod 740 filename.log
  • D. chmod 744 filename.log
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
8 months, 3 weeks ago
D. chmod 744 filename.log The chmod command is used to change the permissions of files in Linux. The number passed to chmod specifies the binary representation of the desired permissions. The binary representation of -rwxr—r-- is 111 100 100, which corresponds to the decimal value 744. So, the command to set the permissions to -rwxr—r-- is "chmod 744 filename.log".
upvoted 3 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