Unix/Lunux MCQ Quiz Hub

Linux Mcqs Questions Set 3

Choose a topic to test your knowledge and improve your Unix/Lunux skills

1. With a umask value of 112, what is the default permission assigned to newly created regular file?




2. Which command is used to assign read-write permission to the owner?




3. Given the command chmod o-w datafile




4. Which of these commands will set the permissions on file textfile to read and write for the owner, read for the group, and nothing for everyone else?




5. If you are a root user, how can you grand execute permission only for the owner of the file project1?




6. A user executes the following command successfully: $ chmod +x file1.txt Which of the following is true of the output of this command?




7. What does chmod +t do?




8. Which of the following umask settings doesn’t allow execute permission to be set by default on directory files




9. Which of the following umask settings allow execute permission to be set by default on regular files




10. The command chmod 4777 a.out




11. Which command is used to check filesystem usage in a system?




12. Which among the following allows fast file system recovery?




13. Which filesystem can be used to change certain kernel parameters at runtime using sysctl command?




14. Filesystem for CDROM is:




15. Which file system has journaling capability?




16. Which file contains the filesystems to be automatically mounted during boot?




17. __ is a directory (which should exist), on which to mount the file system?




18. Which command is used to mount file system read only.




19. Which command is used to check filesystem usage in a system?




20.  Filesystem for CDROM is:




21. ___ is a directory (which should exist), on which to mount the file system?




22. Which of the following is not a valid run-level




23. On Linux, initrd is a file




24. Which is loaded into memory when system is booted?




25. The process of starting up a computer is known as




26. Bootstrapping is also known as




27. The shell used for Single user mode shell is:




28. Single user mode shell runs as




29. Which is the only partition mounted in Single user mode




30. Which daemon manages the physical memory by moving process from physical memory to swap space when more physical memory is needed.




31. At the end of kernel bootstrap, which process is started?




32. The process id of init process is:




33. Which file is read by init to get the default runlevel




34. If a program executing in background attempts to read from STDIN




35. Which command is used to bring the background process to forground?




36. How to run a process in the background?




37. Which command can be executed by a user who is already logged into the system, in order to change to the root user? (type the command without any parameters)




38. Process information in the current shell can be obtained by using




39. Which signal is sent by the command kill -9  ?




40. Which of the following values for STAT column of ps command is not true:




41. When a child process exits before the parent process exits, which of the following is true:




42. The signal sent to a process when the Ctrl-C key is pressed is




43. we can change the priority of a running process using




44. nohup is used to




45. Users Primary Group id is listed in which file, at the time of creation of the user (On a standard Unix system)




46. The encrypted password of a user is stored in




47. A user can change the default log-in shell using