Which permissions command would you use to remove write permission from a file?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

To remove write permission from a file in a Linux environment, the command uses the syntax that includes a minus sign followed by the permission type you want to revoke. The correct choice specifically designates the removal of write permissions. Therefore, using a command with "-w" directs the system to take away write access, ensuring that the file can no longer be modified by the user or group that the permission applies to.

The other options provided do not serve the purpose of removing write permissions. Adding a write permission would use "+w," while "+r" would add read permission instead. There is also the mention of "-r," which refers to removing read permissions instead of write. Hence, the command to remove write permission is effectively indicated by using "-w".

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy