Unix/Lunux MCQ Quiz Hub

Unix MCQ Set 01

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

1. The first set of the three permissions (rw) pertains to the owner of the file, indicating that the owner has




2. Which of the following commands is used to obtain a list of all files by modification time?




3. Which option will be used with disk free command to include the total amount of disk space in the file system?




4. Which command is used to terminate all processes in your own system except the login shell?




5. Which of the following commands is used to display your working directory?




6. Which of the following commands is used to rename a file?




7. Which command is used to save the standard output in a file, as well as display it on the terminal?




8. Which command is used to copy all files having the string chap and any two characters after that to the progs directory?




9. Which command will be used with vi editor to replace single character under cursor with any number of characters?




10. Which symbol will be used with grep command to match the pattern pat at the end of a line?




11. The Octal number to be given along with chmod command to make a file readable, writable and executable to the owner, readable and executable to group and others is:




12. Which of the following commands is used to get directory one level up?




13. The cat command is used to




14. Which command is used to count just the number of characters in a file?




15. Which command is used to display the end of the file?




16. Which of following commands is used for an automatic reminder service?




17. While working with mail command, which command is used to save mail in a separate file?




18. Which of the following commands can be used to get information about yourself?




19. Which of the following keys is used to delete the character beneath the cursor?




20. The cp command uses:




21. Which command is used to locate all the .profile files in the system?




22. Which command is used to display all the lines with the string 'sales' from the file empl.lst?




23. Which of the following files contains information related to password aging?




24. The [line number G] key allows you




25. Which command sends the word count of the file infile to the newfile.




26. Which option is used with the chmod command recursively to all files and sub-directories in a directory?




27. The special shell variable $* is used




28. Which of the following is not a communication command?




29. Which set option is used with vi editor to display line numbers on screen?




30. Which of the following signs is used to back up over typing errors in vi?




31. The command which transcribes the standard input to the standard output and also makes a copy of the same in a file is




32. Which command is used to list out all the hidden files along with the other files?




33. The octal representation 652 indicates




34. Which of the following commands is used to list contents of directories?




35. Which of the following commands is used to assign executable permission to the owner of the file named "note"?




36. The command that can be used to restrict incoming messages to a user is




37. In vi editor, forward search is performed using the command.




38. Which of the following commands is used to change the working directory?




39. Which option is used with cmp command to give a detailed list of the byte number and the differing bytes in octal for each character that differs in both the files?




40. The % key allows you




41. Which command is used to copy the three files wb, collect and mon into the misc directory, under the same, when you were currently in the programs directory?




42. Which command will be used with vi editor to append text at end of line?




43. Which command is used to make all files and sub-directories in the directory (progs) executable by all users?




44. Which command is used to sort the lines of data in a file in alphabetical order?




45. Which of the following shell's wildcards are used to match any number of characters including none?




46. Which column contains all details of the permissions of a file when you issue the ls -l command?




47. Which is the earliest and most widely used shell that came with the UNIX system?




48. You can append to a file instead of overwriting by using the




49. You can append to a file instead of overwriting by using the




50. Which option will be used with sort command to start sorting ofter the nth column of the (m+l)th field?




51. The ls -l command tells




52. The UNIX file system stores a data in physical blocks of




53. Which command is used to sort the lines of data in a file in reverse order




54. Which of the following commands can be used to get information about all users who are currently logged into the system?




55. Which of are following internal commands is used in mail to forward mail to user in user-list?




56. Which command is used to extract specific columns from the file?




57. Which of the following is not a filter?




58. Which of the following command is used to count just the number of lines contained in a file?




59. Which of the following files will displayed by this command cat *ch*




60. Which of the following command is used to count just the number of lines contained in a file?




61. Which of the following files will displayed by this command cat *ch*




62. Which of the following is invalid filename?




63. Which of the following commands is used to copy directory structures in and out




64. Which of the following commands is used to copy directory structures in and out




65. Which command is used to remove a file?




66. Which of the following commands is used to absolutely assign all permissions to the owner, read and write permissions to the group and only executable permission to the others of the file note?




67. Which of the following commands is used to absolutely assign all permissions to the owner, read and write permissions to the group and only executable permission to the others of the file note?




68. Which command is used to assign only read permission to all three categories of the file 'note'?




69. Which command is used to display a file contents in octal form?




70. Which of the following commands is used to count the total number of lines, words, and characters contained in a file.




71. Which command is used with vi editor to save file and remain in the editing mode?




72. Which of the following command addresses all users who are currently hooked on?




73. Which of the following commands is used to remove files with confirmation prompt from the user file system which have neither been accessed nor modified i the last one year?




74. Which command is used to link the files?




75. Which of the following commands is used to identify the type of file by context?




76. Which command is used to copy a file wb with the same name from the programs directory to the misc directory?




77. Which of the following command is used to go to home directory?




78. The second set of the three permissions (r-) indicates that




79. Which command is used to set the three permissions for all the three categories of users of a file?