Unix/Lunux — Learn

Unix MCQ Set 02

Review each question and reveal answers to strengthen your understanding

1 Which command is used with vi editor scroll half page backward?
✅ Correct Answer: 2
2 Which command is used to terminate a process?
✅ Correct Answer: 4
3 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
4 Which command is used to display the top of the file?
✅ Correct Answer: 2
5 The first set of the three permissions (rw) pertains to the owner of the file, indicating that the owner has
✅ Correct Answer: 4
6 Which of the following commands is used to obtain a list of all files by modification time?
✅ Correct Answer: 2
7 Which option will be used with disk free command to include the total amount of disk space in the file system?
✅ Correct Answer: 1
8 Which command allows you to view your file 24 lines at a time?
✅ Correct Answer: 2
9 Which command is used to display the characteristics of a process?
✅ Correct Answer: 3
10 Which of the following keys is used to overstrike a whole line?
✅ Correct Answer: 1
11 Which option will be used with ps command to show the entire command line of the process being run?
✅ Correct Answer: 2
12 Which command is used to list all the files with extension .lst?
✅ Correct Answer: 1
13 Which of the following special shell variables is used to process number of the current shell?
✅ Correct Answer: 2
14 Which option will be used with touch command to change the access time?
✅ Correct Answer: 1
15 Which command is used with vi editor to search a pattern in the forward direction?
✅ Correct Answer: 1
16 Which command is used with vi editor to move the cursor to the left?
✅ Correct Answer: 4
17 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
18 Which command is used to change directory to the name beginning with a 'p'?
✅ Correct Answer: 3
19 Which command is used with vi editor to move cursor forward to first occurrence of character 'ch' in the current line?
✅ Correct Answer: 2
20 The command to count the number of files in the current directory by using pipes, is
✅ Correct Answer: 3
21 Which symbol is used to separate more than one command in the same command line?
✅ Correct Answer: 4
22 Which of the following commands is used to remove files?
✅ Correct Answer: 3
23 The command chmod 761 note is equivalent to
✅ Correct Answer: 2
24 Which of the following commands is used to display the filenames in multiple columns?
✅ Correct Answer: 3
25 The field separator in cut command is specified with
✅ Correct Answer: 2
26 Which command is used to print a file?
✅ Correct Answer: 4
27 Which of the following keys is used to move the cursor to the end of the paragraph.
✅ Correct Answer: 1
28 Which of the following set options is used with vi editor to ignore case while searching for patterns?
✅ Correct Answer: 1
29 Which of the following commands is used to view your file 24 lines at a time?
✅ Correct Answer: 1
30 Which of the following directories contain all the Alias created by a user, including his login directory?
✅ Correct Answer: 3
31 Which command is used to display and create files?
✅ Correct Answer: 1
32 In Bourne shell, which file sets the Unix environment for the user when the logs into his HOME directory.
✅ Correct Answer: 2
33 Which of the following commands is used to display the directory attributes rather than its contents?
✅ Correct Answer: 1
34 Which of the following commands is used to summarize the disk usage?
✅ Correct Answer: 3
35 The agency that sits between the user and the UNIX system is called the
✅ Correct Answer: 3
36 Which command is used to remove a directory?
✅ Correct Answer: 2
Back to All Quizzes