Unix/Lunux MCQ Quiz Hub

Unix MCQ Set 02

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

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





✅ Correct Answer: 2

Which command is used to terminate a process?





✅ 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 command is used to display the top of the file?





✅ Correct Answer: 2

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 obtain a list of all files by modification time?





✅ Correct Answer: 2

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





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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





✅ Correct Answer: 3

Which of the following keys is used to overstrike a whole line?





✅ Correct Answer: 1

Which option will be used with ps command to show the entire command line of the process being run?





✅ Correct Answer: 2

Which command is used to list all the files with extension .lst?





✅ Correct Answer: 1

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





✅ Correct Answer: 2

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





✅ Correct Answer: 1

Which command is used with vi editor to search a pattern in the forward direction?





✅ Correct Answer: 1

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





✅ Correct Answer: 4

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





✅ Correct Answer: 1

Which command is used to change directory to the name beginning with a 'p'?





✅ Correct Answer: 3

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





✅ Correct Answer: 2

The command to count the number of files in the current directory by using pipes, is





✅ Correct Answer: 3

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





✅ Correct Answer: 4

Which of the following commands is used to remove files?





✅ Correct Answer: 3

The command chmod 761 note is equivalent to





✅ Correct Answer: 2

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





✅ Correct Answer: 3

The field separator in cut command is specified with





✅ Correct Answer: 2

Which command is used to print a file?





✅ Correct Answer: 4

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





✅ Correct Answer: 1

Which of the following set options is used with vi editor to ignore case while searching for patterns?





✅ Correct Answer: 1

Which of the following commands is used to view your file 24 lines at a time?





✅ Correct Answer: 1

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





✅ Correct Answer: 3

Which command is used to display and create files?





✅ Correct Answer: 1

In Bourne shell, which file sets the Unix environment for the user when the logs into his HOME directory.





✅ Correct Answer: 2

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





✅ Correct Answer: 1

Which of the following commands is used to summarize the disk usage?





✅ Correct Answer: 3

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





✅ Correct Answer: 3

Which command is used to remove a directory?





✅ Correct Answer: 2