🧪 Unix/Lunux MCQ Quiz Hub

Unix MCQS Set 1

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

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




2. Which command is used to sort the




3. Which command is used to display the top of the file?




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




5. Which command is used to change protection mode of files starting with the string emp and ending with 1,2, or 3?




6. Which command is used to remove a directory?




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




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




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




10. Which command is used to remove the read permission of the file 'note' from both the group and others?




11. Which of the following commands is used to display the directory attributes rather than its contents?




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




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




14. If you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use




15. Which of the following is not a communication command.




16. Which of the following keys is used to move the cursor to the end of the paragraph.




17. Which command is used to concatenate all files beginning with the string 'emp' and followed by a non-numeric characters?




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




19. Which command is used to remove a file?




20. Which symbol is used to separate more than one command in the same command line?




21. The agency that sits between the user and the UNIX system is called the




22. Which of the following commands is used to update access and modification times of a file?




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




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




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




26. Which command will be used with vi editor to insert text to left of cursor?




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




28. Which of the following special shell variables is used to process number of the last background job?




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




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




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




32. Which of the following directories contain all the Alias created by a user, including his login




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




34. The % key allows you




35. Which command is used to display the characteristics of a process?




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




37. TWhich of the following commands is used to display your working directory?




38. Which command is used to display and create files?




39. Which option will be used with touch command to change the access time?




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




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




42. The command used to compare the files is known as




43. Which command is used to terminate a process?




44. The cp command uses: