Linux File Permissions Commands Aptitude Questions and Answers

Linux File Permissions Commands Aptitude Questions and Answers: This section contains aptitude questions and answers on Linux File Permissions Commands.
Submitted by Nidhi, on May 20, 2020

This section contains Aptitude Questions and Answers on File Permissions Commands.

1) Which of the following are the types of file owners in the Linux Operating System?
  1. User
  2. Group
  3. Other
  4. None of the above

Options:

  1. A and B
  2. C and D
  3. A, B, and C
  4. D

2) Which exact command is used to see the permissions of a file in the Linux operating system?
  1. perms
  2. file -perm
  3. ls -l
  4. ls -perm

3) How can we differentiate between file and directory from the output of ls command?
  1. Directories are mentioned in capital letters in the output of ls command.
  2. The d character is used before permissions in the output of ls command.
  3. Both of the above
  4. None of the above

4) Which of the following type of permissions are used for files and directories in the Linux Operating System?
  1. Read
  2. Write
  3. Execute
  4. All of the above

Options:

  1. A and B
  2. B and C
  3. A and C
  4. D

5) Which of the following character is used for "execute" permissions in the Linux operating system?
  1. e
  2. x
  3. E
  4. None

6) Can we assign permissions to all types of owners of a specified file in a single command?
  1. Yes
  2. No

7) Which of the following command is used to change the permissions of a file?
  1. chperm
  2. chmod
  3. chown
  4. permission

8) Which of the following command is used to change the group owner of a file?
  1. group
  2. chgroup
  3. chown
  4. chgrp

9) Which of the following command is used to change the owner of a file?
  1. owner
  2. chgown
  3. chown
  4. changeowner

10) Which of the following character is used to identify the symbolic link file in the output of ls command?
  1. s
  2. c
  3. l
  4. _

11) Which of the following modes are used to assign permission to the file in the Linux operating system?
  1. Numeric mode
  2. Symbolic mode
  3. Both
  4. None

12) Which of the following number is used for "read" permission in the Linux operating system?
  1. 4
  2. 2
  3. 1
  4. 0

13) If we want to assign read and execute permission to the file then which number is used in the chmod command to assign permission?
  1. 5
  2. 6
  3. 7
  4. 3

14) Which exact command is used to assign all read, write and execute permission to all owners of a file?
  1. chmod 7 <file name>
  2. chmod 777 <file name>
  3. chown 777 <file name>
  4. chgrp 777 <file name>

15) Which of the following notations are correct for owners of a file?
  1. a
  2. o
  3. u
  4. g

Options:

  1. A and B
  2. A, B, and C
  3. A, B, and D
  4. A, B, C, and D

16) Which of the following operator is used to set and override the permission of a file in chmod command?
  1. +
  2. =
  3. *
  4. -

17) Which exact command is used, when we want to add execute permission to all owners of the file?
  1. chmod all x <file name>
  2. chmod ax <file name>
  3. chmod a+x <file name>
  4. None of the above

18) Which option is used to assign permission to directory recursively?
  1. -r
  2. -R
  3. -REC
  4. -rec

19) Which exact command is used, remove write, and execute permission from a file?
  1. chmod w-x <file name>
  2. chmod x-w <file name>
  3. chmod –we <file name>
  4. chmod –wx <file name>

20) Which command is used to see what permissions will be provided to the newly created file by default?
  1. default
  2. unmask
  3. permissions
  4. defperm





Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.