PrepAway - Latest Free Exam Questions & Answers

In order to make a script executable in a Linux computer, you must assign the___________ permission to the scr

Fill in the blank with the required permission to complete the statement below. In order to make a
script executable in a Linux computer, you must assign the___________ permission to the script
file.

PrepAway - Latest Free Exam Questions & Answers

A.
execute

Explanation:
In order to run the script, you are required to add the execute permission to the
script file. The permission can be assigned through the chmod command.
What is the chmod command?
The chmod command is used to change file access permissions in Linux.
Syntax:
chmod [option] [mode] <file1, file2, …>
Option: The following is a list of some important options that can be provided with the command:

Mode: Mode is written in the following format:
[ugoa] [+-=] [rwxXstugo]
The combination of ugoa specifies the users for whom the file access permissions will be
changed. In ugoa, u is for the user who owns the file, g is for other users in the file group, o is for
other users not in the file group, and a is for all users.
The operator + adds the specified permissions to the existing permissions of each file. The -operator removes, and the = character specifies that the specified permissions are the only
permissions for that file.
The combination of rwxXstugo is permission type. In rwxXstugo, r is for read, w is for write, x is for
execute, X is to execute only if the file is a directory or already has execute permission for some
user, s is to set user or group
ID on execution, t is to save program text on swap device, u are the permissions that the user who
owns the file currently has for it, g are the permissions that other users in the file group have for
the file, and o are the permissions that other users not in the file group have for the file.


Leave a Reply