Blog

MCQs

Disclaimer:

Educational Use Only:

The website links provided are to be used strictly for educational and knowledge-gaining purposes only.

No Misuse:

Do not misuse the links or the information contained therein for any commercial, illegal, or unethical activities.

Respect for Websites and Businesses:

Respect the intellectual property and business interests of the websites and their owners. Do not attempt to alter, copy, or redistribute content without proper authorization.

Acknowledge Value of Knowledge:

Recognize and value the knowledge and resources shared by these websites. Use the information responsibly and ethically.

No Endorsement:

The provision of these links does not imply endorsement of the linked sites, their content, or their products and services. Users are responsible for evaluating the suitability and accuracy of the information.

User Responsibility:

By accessing these links, you agree to use the information at your own risk and to comply with all applicable laws and website terms of use.


  1. Which command is used in Unix/Linux to change the permissions of a file or directory?
    a. chmod
    b. chown
    c. chgrp
    d. ls
    Answer: a. chmod
    sanfoundry+2
  2. What is the main purpose of the chmod command?
    a. Change file permissions
    b. Copy files
    c. Move directories
    d. Delete files
    Answer: a. Change file permissions
    w3schools+1
  3. What does the permission “r” stand for in chmod?
    a. Read
    b. Run
    c. Rename
    d. Remove
    Answer: a. Read
    sanfoundry+1
  4. Which permission is represented by “w” in chmod?
    a. Write
    b. Watch
    c. Wait
    d. Wrap
    Answer: a. Write
    exam.pscnotes+1
  5. What does the “x” permission allow?
    a. Execute
    b. Exit
    c. Extract
    d. Export
    Answer: a. Execute
    sanfoundry+1
  6. Which option allows changing permissions recursively for directories and their contents with chmod?
    a. -R
    b. -v
    c. -l
    d. -f
    Answer: a. -R
    w3schools
  7. In the command “chmod 755 filename”, what does the number 7 represent for the owner?
    a. Read, write, execute
    b. Read only
    c. Write only
    d. Execute only
    Answer: a. Read, write, execute
    stackoverflow+1
  8. What does the 5 mean in “chmod 755 filename” for the group?
    a. Read and execute
    b. Write and execute
    c. Read and write
    d. Read only
    Answer: a. Read and execute
    stackoverflow+1
  9. What permission does “chmod 644 file.txt” give to others?
    a. Read only
    b. Write only
    c. Execute only
    d. Read and write
    Answer: a. Read only
    labex+1
  10. Which of these is the octal value for read, write, and execute?
    a. 7
    b. 5
    c. 4
    d. 2
    Answer: a. 7
    exam.pscnotes+1
  11. What is the octal value for read and write permissions only?
    a. 6
    b. 7
    c. 5
    d. 4
    Answer: a. 6
    sanfoundry+1
  12. What does “chmod u+x file” do?
    a. Adds execute permission to user
    b. Removes execute for user
    c. Adds execute for group
    d. Removes write for user
    Answer: a. Adds execute permission to user
    labex+1
  13. Which symbolic letter represents the group in chmod?
    a. g
    b. o
    c. u
    d. a
    Answer: a. g
    exam.pscnotes+1
  14. Which letter in symbolic notation represents others?
    a. o
    b. u
    c. g
    d. a
    Answer: a. o
    sanfoundry+1
  15. To remove write permissions for others, which chmod command is correct?
    a. chmod o-w file
    b. chmod ow file
    c. chmod rw file
    d. chmod u-w file
    Answer: a. chmod o-w file
    exam.pscnotes
  16. What is the meaning of “chmod u=rwx,g=rx,o=r file”?
    a. User has all, group has read and execute, others have read
    b. User has none, group all, others all
    c. All have all permissions
    d. User read only
    Answer: a. User has all, group has read and execute, others have read
    sanfoundry+1
  17. “chmod a+r file” gives read permission to whom?
    a. All users
    b. Only owner
    c. Only root
    d. Only group
    Answer: a. All users
    exam.pscnotes
  18. In numeric mode, what does 0 mean?
    a. No permissions
    b. Execute only
    c. Read only
    d. Write only
    Answer: a. No permissions
    stackoverflow+1
  19. What does “chmod 777 file” do?
    a. Full permissions for everyone
    b. No permissions for all
    c. Full permissions for user only
    d. Read for all
    Answer: a. Full permissions for everyone
    stackoverflow+1
  20. Is it secure to set permissions to 777 on a web server file?
    a. No
    b. Yes
    c. Sometimes
    d. Never
    Answer: a. No
    stackoverflow
  21. Which chmod notation assigns read and execute only to all categories?
    a. chmod 555 file
    b. chmod 777 file
    c. chmod 664 file
    d. chmod 755 file
    Answer: a. chmod 555 file
    sanfoundry+1
  22. Which of the following is true about symbolic mode in chmod?
    a. Uses u, g, o, a, +, -, =
    b. Uses only numbers
    c. Changes ownership
    d. Deletes a file
    Answer: a. Uses u, g, o, a, +, -, =
    exam.pscnotes+1
  23. What does “chmod g+w file” do?
    a. Grants write permission to group
    b. Grants write to user
    c. Removes write from group
    d. Adds write to all
    Answer: a. Grants write permission to group
    exam.pscnotes
  24. Which command removes execute permission for all users?
    a. chmod a-x file
    b. chmod a+x file
    c. chmod o-x file
    d. chmod u+x file
    Answer: a. chmod a-x file
    exam.pscnotes
  25. What does “chmod o=r file” achieve?
    a. Others can only read
    b. Others can only write
    c. Others can only execute
    d. Others have all permissions
    Answer: a. Others can only read
    sanfoundry+1
  26. Which option makes chmod show changes for each processed file?
    a. -v
    b. -R
    c. -f
    d. -x
    Answer: a. -v
    w3schools
  27. Which command sets permissions to rwxr-xr–?
    a. chmod 754 file
    b. chmod 644 file
    c. chmod 755 file
    d. chmod 777 file
    Answer: a. chmod 754 file
    sanfoundry
  28. In chmod, what does “a” stand for in a symbolic context?
    a. All users
    b. Admin only
    c. Anonymous
    d. Automate
    Answer: a. All users
    sanfoundry+1
  29. What would “chmod u-x file” do?
    a. Remove execute for user
    b. Add execute for user
    c. Remove execute for all
    d. Remove write for user
    Answer: a. Remove execute for user
    exam.pscnotes
  30. Which of the following best describes the effect of using chmod with the -R flag?
    a. Recursively change permissions for directories and files within
    b. Rename files
    c. Remove directories
    d. Refresh permissions
    Answer: a. Recursively change permissions for directories and files within
    w3schools
  31. What is the default umask for most Linux distributions that affects default permissions?
    a. 022
    b. 777
    c. 000
    d. 644
    Answer: a. 022
    sanfoundry
  32. For a file with rw-r–r–, what is the numeric (octal) notation?
    a. 644
    b. 755
    c. 777
    d. 666
    Answer: a. 644
    labex+1
  33. Which permission would allow a script to be run as a program?
    a. Execute (x)
    b. Write (w)
    c. Read (r)
    d. None
    Answer: a. Execute (x)
    geeksforgeeks+1
  34. The symbolic notation for giving the group and others only read permission is?
    a. chmod go=r file
    b. chmod go+x file
    c. chmod go+=x file
    d. chmod go+w file
    Answer: a. chmod go=r file
    exam.pscnotes
  35. What does “chmod 600 file” permit?
    a. Owner read/write, none for others
    b. All users read/write
    c. Owner execute only
    d. Group and others execute only
    Answer: a. Owner read/write, none for others
    sanfoundry+1
  36. What is the result of chmod 444 file?
    a. Read only for all
    b. No permission
    c. Write only for all
    d. Execute only for all
    Answer: a. Read only for all
    exam.pscnotes+1
  37. How many categories of users can permissions be set for using chmod?
    a. Three
    b. Two
    c. One
    d. Four
    Answer: a. Three
    sanfoundry+1
  38. What would the command “chmod g+r file” do?
    a. Grants read permission to group
    b. Grants read to owner only
    c. Grants execute to group only
    d. Remove read from group
    Answer: a. Grants read permission to group
    labex+1
  39. Which combination removes all permissions from others?
    a. chmod o= file
    b. chmod o-rwx file
    c. chmod o-x file
    d. chmod o-w file
    Answer: a. chmod o= file
    exam.pscnotes
  40. If a command is issued as “chmod 700 script.sh”, who can access it?
    a. Owner only
    b. Group only
    c. Others only
    d. Owner and group
    Answer: a. Owner only
    sanfoundry+1
  41. What does “chmod –reference=otherfile file” do?
    a. Applies permissions of otherfile to file
    b. Removes all permissions
    c. Duplicates the file
    d. Changes ownership
    Answer: a. Applies permissions of otherfile to file
    w3schools+1
  42. What command is used to add execute permission to everyone?
    a. chmod a+x file
    b. chmod o+x file
    c. chmod u+x file
    d. chmod a-w file
    Answer: a. chmod a+x file
    exam.pscnotes
  43. Which is the symbolic way to remove read access for group?
    a. chmod g-r file
    b. chmod g+r file
    c. chmod u-r file
    d. chmod o-g file
    Answer: a. chmod g-r file
    exam.pscnotes
  44. What will “chmod 000 file” do?
    a. No permissions for anyone
    b. Full permissions for user only
    c. Full permissions for all
    d. Read for all
    Answer: a. No permissions for anyone
    sanfoundry+1
  45. What permission value allows only reading and writing by group and others?
    a. 666
    b. 777
    c. 644
    d. 600
    Answer: a. 666
    sanfoundry
  46. Which is not a valid symbolic character for chmod user categories?
    a. z
    b. u
    c. g
    d. o
    Answer: a. z
    exam.pscnotes
  47. Which of the following disables writing on a file for everyone?
    a. chmod a-w file
    b. chmod a+w file
    c. chmod a-x file
    d. chmod a+r file
    Answer: a. chmod a-w file
    exam.pscnotes
  48. What does “chmod u=r file” give to the user?
    a. Read only
    b. No permission
    c. Write only
    d. Read and execute
    Answer: a. Read only
    sanfoundry+1
  49. The “chmod” command can be used on which types of objects?
    a. Files and directories
    b. Network ports
    c. Memory
    d. Users only
    Answer: a. Files and directories
    labex+1
  50. The effect of “chmod 711 file” is:
    a. Owner all, group and others execute only
    b. All users full access
    c. Owner none, group and others read only
    d. Owner read/write only
    Answer: a. Owner all, group and others execute only

 

  1. https://www.sanfoundry.com/unix-questions-answers-changing-file-ownership-permissions-1/
  2. https://testbook.com/objective-questions/mcq-on-shell-programming–61f8d371669162b150866194
  3. https://www.w3schools.com/bash/bash_chmod.php
  4. https://labex.io/questions/what-is-the-use-of-chmod-command-in-linux-153895
  5. https://www.sanfoundry.com/10-practical-chmod-command-usage-examples-in-linux/
  6. https://exam.pscnotes.com/mcq/which-command-is-used-to-set-the-three-permissions-for-all-the-three-categories-of-users-of-a-file-a-chgrp-b-chown-c-chmod-d-chusr-e-none-of-the-above/
  7. https://stackoverflow.com/questions/11271596/how-will-a-server-become-vulnerable-with-chmod-777
  8. https://www.geeksforgeeks.org/linux-unix/chmod-command-linux/
  9. https://www.placementpreparation.io/mcq/linux/page/2/
  10. https://t4tutorials.com/linux-file-permissions-solved-mcqs/
  11. https://www.sanfoundry.com/unix-questions-answers-experienced/
  12. https://www.scribd.com/document/668706719/Unix-Module-3-MCQ
  13. https://blog.pentesteracademy.com/practice-linux-permissions-basics-with-13-easy-questions-part-i-75aeaf299ebf
  14. https://letsfindcourse.com/technical-questions/unix-mcq/unix-file-permission-and-access-modes-mcq
  15. https://www.examveda.com/computer-science/practice-mcq-question-on-unix/
  16. https://itexamanswers.net/question/the-administrator-of-a-linux-server-uses-the-chmod-777-usr-phones-txt-command-to-assign-permissions-to-a-file-that-contains-the-company-phone-directory-what-permissions-are-assigned-with-this-comman
  17. https://www.yeahhub.com/linux-multiple-choice-questions-mcq-91-120-questions-explanation/
  18. https://askfilo.com/user-question-answers-smart-solutions/answer-the-following-questions-13-what-is-the-use-of-the-3233343430303533
  19. https://opensource.com/article/19/8/linux-chmod-command
  20. https://www.studocu.com/en-us/messages/question/3042412/using-the-chmod-command-which-commands-would-you-use-to-set-the-following-permissions-to-a-file

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!