Quiz1 1st semester (1445) Time: 30 mn Student Name:_________________ Student Number:___________ Quiz 1 1. Which of the following commands is used to create a new user in the Linux operating system? a. createuser b. adduser c. useradd d. user 2. What operations are performed when a new user is created? a. Creates a new home directory for the user b. The ownership and permissions are assigned to the home directory c. Both of the above d. None of the above 3. Which of the files gets edited when we create a new in Linux operating system? A. /etc/group B. /etc/shadow C. /etc/gshadow D. /etc/passwd a. A and B b. C and D c. A, B, and C d. A, B, C, and D 4. What is the default UID of root user in the Linux operating system? A. 0 B. 1 C. 2 D. 3 5. What is the range of UIDs is reserved for groups and system accounts? A. 1-50 B. 51-100 C. 100-999 D. 1000-9999 6. There are the following statements that are given below, which of them are correct about GID in the Linux operating system? A. GID is a group identification number that is used it identify a group in Linux OS. B. GID is provided by the Linux operating system to the newly created group. C. GID is provided by the user who created the group in the Linux operating system. D. GIDs are stored in /etc/group file. a. A and B b. A, B, and D c. A, B, and C d. B, C, and D 7. Which Linux command is used to assign a password to the created user? a. password b. newpass c. passwd d. pwd 8. Can we create a new user without becoming a root user? a. Yes b. No 9. Which file contains encrypted user's passwords? a. /etc/passwords b. /etc/shadow c. /etc/pwd d. /etc/pwds 10. Which exact command is used to disable password for a particular user? a. usermod -D <user name> b. usermod -d <user name> c. usermod -l <user name> d. usermod -L <user name> 11. Which command is used to create a new group in the Linux operating system? a. creategroup b. addgroup c. groupadd d. groupcreate a. 742 b. 754 c. 724 d. 624 17. Which command is used to create or update the quota database files? a. quotactl b. quotadb c. quotacheck d. dbquota 18. chmod command can take multiple filenames as arguments. a) True b) False 19. Which of the following symbol is used with chmod to assign permission to a file? a) – b) / c) + d) * 20. To assign execute permission to the user (owner) for a file named file01.txt, which of the following command will be used? a) chmod u+r file01.txt b) chmod u+w file01.txt c) chmod u-x file01.txt d) chmod u+x file01.txt 12. Which command is used to rename the existing group? a. rename b. rengroup c. groupmode d. groupmod 13. Which command is used to remove an existing group? a. removegroup b. deletegroup c. groupdel d. grouprmv 14. Which command would give the owner and group of myfile the permissions of read and execute while all others have read access? a. chmod 003 myfile b. chmod 554 myfile c. chmod 331 myfile d. chmod 662 myfile 15. Which command and options are used to delete a user’s account and home directory? a. userdel -r b. usermod -f c. passwd -e d. usermod -e 16. what does rwx r-x r-- mean in octal 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20