Unix/Lunux MCQ Quiz Hub

Unix MCQ

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

1. What is Unix?




2. The Unix shell is both _______ and _______ language.




3. In which language UNIX is written?




4. Which of the following is the first UNIX editor?




5. Which of the following is not a feature of Unix?




6. Which of the following is not true about Unix?




7. Which editor is used by the Unix system to edit files?




8. Which of the following is not a part of all the versions of Unix?




9. Which part of the Unix operating system interacts with the hardware?




10. Which command is used to display the documentation of commands in Unix?




11. Which Unix command is used for changing the current directory?




12. Which command is used for printing the current working directory?




13. Which command is used for listing files in a directory?




14. Which command is used by the user to change their login password in Unix?




15. Which command is used for displaying the contents of a file in Unix?




16. Which command is used to compress files?




17. Which command is used for displaying the beginning of a file in Unix?




18. Which symbol is used with the tail command to print the file from the selected line? d)




19. Which command is used to delete all files in a directory?




20. echo command is used for _________




21. What is the function of cp command in Unix?




22. Which command is used for removing/deleting files in Unix?




23. Which command is used for renaming files in Unix?




24. Which command is used for comparing two files?




25. Which Unix command is used for counting words, lines, and characters in a file?




26. Which command is used for saving and quitting the vi editor simultaneously?




27. How can we escape to the UNIX shell without quitting vi editor?




28. Which of the following files are known as special files in Unix?




29. What is the output of the following Unix command? $ wc -c *.c




30. In Unix, for what purpose bc command is used?




31. Which process is immediately set up by the kernel when we log on to a Unix system?




32. Which command shows some attributes of a process?




33. Which of the following system call is used for creating a new process in Unix?




34. Which Unix command is used for locating files?




35. Which command is used for preparing a file for printing?




36. Which command is used for sorting a file on specified fields?




37. Which Unix command is used for locating repeated and non-repeated lines?




38. Which command is used for translating characters?




39. Which of the following command will be used for searching “director” in emp.lst?




40. Which of the following command is used for searching for a pattern in one or more file(s)?




41. Which of the following commands is known as stream editor?




42. What is a shell script?




43. To run the script, we should make it executable first by using _____




44. Which command is used to find out the consumption of a specific directory?




45. Which filter apart from perl, is the most powerful?




46. Which filter apart from perl, is the most powerful?




47. For running a Unix command within awk, we’ve to use ____ function.




48. To extract specific columns from a file ____ command is used.




49. Which of the following cannot be performed by cat command?




50. What is the default delimiter used by the cut command for cutting fields?




51. Which of the following is not an internal command used by mailx?




52. Which command is used for printing the current working directory?




53. Which command is used for changing the current directory?




54. Which command is used for creating directories?




55. Which command is used for creating directories?




56. What does the following command do? $ mkdir dir dir/dir_01/dir_02




57. Sometimes we are unable to create a directory because ______________




58. Which command is used for removing an empty directory?




59. If rmdir dir001 fails, what could be the reason(s)?




60. Which of the following keys is used to replace a single character with new text?




61. $ cp file_01 . copies the file named file_01 in ____ directory




62. The output of the following command is __________ $ cp abd/ .user_06




63. For moving two level up in the file hierarchy system using cd command once, we separates ( . . ) by which symbol?




64. Which command is used for listing files in a directory?




65. Which option is used with ls command for long listing of files with seven attributes?