Operating Systems
Which command changes a file's read, write and execute permissions?
Show the answer
Correct answerD. chmod
AWhy not this: chown changes the owner and group of a file, not its permission bits.
BWhy not this: ls only lists files; with -l it displays permissions but cannot change them.
CWhy not this: grep searches inside files for text patterns and changes nothing about permissions.
DWhy this is right: chmod changes a file's mode, which holds its read, write and execute permissions.
chmod (change mode) sets the read, write and execute permissions for the owner, group and others. chown changes who owns the file, not what the permissions allow.