Unix/Lunux MCQ Quiz Hub

Unix MCQS Set 4

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

The File that contains a set of instructions which are performed when a user logs in, is





✅ Correct Answer: 3

The octal representation 652 indicates





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

Which command is used to move all files to the bin sub-directory of the parent directory?





✅ Correct Answer: 3

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





✅ Correct Answer: 4

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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





✅ Correct Answer: 3

Which command allows you to view your file 24 lines at a





✅ Correct Answer: 2

Which of the following special shell variables is used to process number of the current shell?





✅ Correct Answer: 2

Which command is used with vi editor scroll half page backward?





✅ Correct Answer: 2

Which command is used with vi editor to move cursor forward to first occurrence of character 'ch' in the current line?





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 1

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





✅ Correct Answer: 4

Which of the following commands is used to save the output of the who command in a file named user.lst, as well as display it?





✅ Correct Answer: 1

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





✅ Correct Answer: 4

The command used to remove the directory is;





✅ Correct Answer: 1

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





✅ Correct Answer: 3

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





✅ Correct Answer: 3

Which of the following commands is not the vi Input mode command?





✅ Correct Answer: 4

Which of the following commands is used to remove files?





✅ Correct Answer: 3

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





✅ Correct Answer: 2

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





✅ Correct Answer: 2

The [line number G] key allows you





✅ Correct Answer: 4

Which of the following commands is used to have a two-way communication with any person who is currently logged in?





✅ Correct Answer: 3

Which command is used with vi editor to move the cursor to the left?





✅ Correct Answer: 4

Which of command is used to copy a file?





✅ Correct Answer: 0

The special shell variable $* is used





✅ Correct Answer: 2

The cat command is used to





✅ Correct Answer: 2

The UNIX file system stores a data in physical blocks of





✅ Correct Answer: 3

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





✅ Correct Answer: 2

Which operator will be used with chmod command to assign absolute permission?





✅ Correct Answer: 3

Which command is used to link the files?





✅ Correct Answer: 0

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





✅ Correct Answer: 2

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





✅ Correct Answer: 2

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





✅ Correct Answer: 2

Which of the following commands is used to display the filenames in multiple columns?





✅ Correct Answer: 3

Which command is used with file named 'note' to remove the executable permission from the user and assign read permission to the group and others?





✅ Correct Answer: 1