CompTIA A+ Core 2 (220-1102) — Question 313
A user requested that the file permissions on a Linux device be changed to only allow access to a certain group of users. Which of the following commands should be used to complete the user's request?
Answer options
- A. cat
- B. chmod
- C. pwd
- D. cacls
Correct answer: B
Explanation
The correct command to change file permissions in Linux is 'chmod', which allows you to set permissions for users and groups. The other options, 'cat' is used to display file content, 'pwd' shows the current directory, and 'cacls' is a Windows command for modifying file permissions, making them unsuitable for this Linux scenario.