Which command would be used to change file permissions in Linux?

Prepare for the LPI Linux Essentials 010-160 Test with our comprehensive quiz platform offering flashcards and multiple choice questions. Hints and explanations provided for each question. Get exam-ready with ease!

The command used to change file permissions in Linux is 'chmod.' This command stands for "change mode," and it allows users to alter the access permissions for files and directories. Permissions can be modified for the owner of the file, the group associated with the file, and others who may access the file.

Using 'chmod,' you can specify permissions in either symbolic form (using letters to represent the different permissions) or numeric form (using octal numbers). For example, using 'chmod 755 filename' provides the owner with full permissions (read, write, execute), while the group and others get read and execute permissions.

Other commands mentioned do not serve the purpose of changing file permissions: 'chown' is used to change the ownership of a file, while 'mod' and 'change' are not standard commands in Linux for modifying file permissions. Hence, 'chmod' is undoubtedly the correct choice for managing file permissions.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy