MCQOPTIONS
Saved Bookmarks
This section includes 358 Mcqs, each offering curated multiple-choice questions to sharpen your Unix knowledge and support exam preparation. Choose a topic below to get started.
| 151. |
Which option is used by the sort command to redirect the output to a specified file ? |
| A. | -n |
| B. | -t |
| C. | -o |
| D. | -u |
| Answer» C. -o | |
| 152. |
Which option is used by the sort command to redirect the output to a specified file? |
| A. | -n |
| B. | -t |
| C. | -o |
| D. | -u |
| Answer» D. -u | |
| 153. |
_____ option is used with sort command for removing repeated lines. |
| A. | -n |
| B. | -u |
| C. | -t |
| D. | -a |
| Answer» C. -t | |
| 154. |
Which option is used when we’ve to sort files containing only numbers? |
| A. | -n |
| B. | -a |
| C. | -d |
| D. | -u |
| Answer» B. -a | |
| 155. |
Which option is used with paste command for joining lines? |
| A. | -s |
| B. | -c |
| C. | -a |
| D. | -e |
| Answer» B. -c | |
| 156. |
____ option is used with paste command if we want to specify our own delimiter. |
| A. | -d |
| B. | -c |
| C. | -a |
| D. | -e |
| Answer» B. -c | |
| 157. |
Which command is used for pasting files? |
| A. | cut |
| B. | paste |
| C. | tail |
| D. | head |
| Answer» C. tail | |
| 158. |
The expression cut -c -3 emp.lst will cut columns number ___ |
| A. | 3 |
| B. | 1 |
| C. | 1-3 |
| D. | 0 |
| Answer» D. 0 | |
| 159. |
Which option is used with the tail command for extracting bytes instead of lines? |
| A. | -f |
| B. | -n |
| C. | -c |
| D. | -a |
| Answer» D. -a | |
| 160. |
Which option is used with the head command to specify line count to display? |
| A. | -a |
| B. | -h |
| C. | -n |
| D. | -o |
| Answer» D. -o | |
| 161. |
By default, how many lines are displayed using the head command? |
| A. | 5 |
| B. | 10 |
| C. | 4 |
| D. | 20 |
| Answer» C. 4 | |
| 162. |
Which command is used for displaying the beginning of a file? |
| A. | pr |
| B. | head |
| C. | begin |
| D. | lp |
| Answer» C. begin | |
| 163. |
___ operator is used with pr command to start printing from a specific page. |
| A. | – |
| B. | # |
| C. | + |
| D. | & |
| Answer» D. & | |
| 164. |
Which of the following operator is used with find command for performing the negate function? |
| A. | -a |
| B. | -o |
| C. | && |
| D. | ! |
| Answer» E. | |
| 165. |
Which of the following command will be used to locate those files that have not been modified for more than a year? |
| A. | find . -mtime 1 |
| B. | find . -mtime 1 year -print |
| C. | find . -mtime +365 -print |
| D. | find . -mtime -365 -print |
| Answer» D. find . -mtime -365 -print | |
| 166. |
To specify permissions while using find command we have to use _____ option. |
| A. | -perm |
| B. | -inum |
| C. | -name |
| D. | -type |
| Answer» B. -inum | |
| 167. |
Which option is used with find command to search for files based on access time? |
| A. | -atime |
| B. | -mtime |
| C. | -time |
| D. | -type |
| Answer» B. -mtime | |
| 168. |
The syntax of the find command is _________ |
| A. | find path_list selection_criteria action |
| B. | find action path_list selection_criteria |
| C. | find selection_criteria action path |
| D. | find path action |
| Answer» B. find action path_list selection_criteria | |
| 169. |
The default permissions for a regular file are ____ and for directories are __ |
| A. | 777, 666 |
| B. | 666, 777 |
| C. | 000, 000 |
| D. | 777, 777 |
| Answer» C. 000, 000 | |
| 170. |
We can change the default permission set for files and directories using __ |
| A. | umask |
| B. | um |
| C. | perm |
| D. | touch |
| Answer» B. um | |
| 171. |
Which option is used with ln command to create a soft link? |
| A. | -a |
| B. | -l |
| C. | -s |
| D. | -e |
| Answer» D. -e | |
| 172. |
When we can access a file with multiple filenames, it is said that the file has multiple ____ |
| A. | names |
| B. | inode number |
| C. | links |
| D. | uid |
| Answer» D. uid | |
| 173. |
Every file is associated with a table which contains all possible information about a file, that table is called as _____ |
| A. | info table |
| B. | file table |
| C. | inode |
| D. | ps table |
| Answer» D. ps table | |
| 174. |
Every file system has a directory structure headed by ___ |
| A. | parent |
| B. | child |
| C. | root |
| D. | kernel |
| Answer» D. kernel | |
| 175. |
Which one of the following command will search history list for previous command having the last occurrence of string cvf? |
| A. | /cvf |
| B. | /cvf [enter] |
| C. | /bkw |
| D. | !cvf |
| Answer» B. /cvf [enter] | |
| 176. |
Which symbol is used as a shorthand for using the last argument to the previous command? |
| A. | % |
| B. | _ |
| C. | | |
| D. | $ |
| Answer» E. | |
| 177. |
Which of the following symbols are used for accessing previous commands by event numbers? |
| A. | ! |
| B. | r |
| C. | $ |
| D. | ! and r |
| Answer» E. | |
| 178. |
To display the last five used commands, which one of the following commands is used (in bash shell)? |
| A. | history 5 |
| B. | history -5 |
| C. | history |
| D. | history 5- |
| Answer» B. history -5 | |
| 179. |
Which escape sequence is used with PS1 to show the hostname of our computer? |
| A. | \n |
| B. | \c |
| C. | \h |
| D. | \e |
| Answer» D. \e | |
| 180. |
Which command is used in bash and Korn shells to display the previously used commands? |
| A. | his |
| B. | history |
| C. | sh |
| D. | ps |
| Answer» C. sh | |
| 181. |
Which symbol is used for setting the PS1 prompt to show the current event number? |
| A. | ^ |
| B. | ! |
| C. | & |
| D. | | |
| Answer» C. & | |
| 182. |
Which of the following shells support the use of aliases? |
| A. | bourne |
| B. | Korn |
| C. | bash |
| D. | Korn and bash |
| Answer» E. | |
| 183. |
____ command displays all the variables available in the current shell. |
| A. | env |
| B. | set |
| C. | var |
| D. | sh |
| Answer» C. var | |
| 184. |
The shell has ____ prompts. |
| A. | 1 |
| B. | 2 |
| C. | 4 |
| D. | many |
| Answer» C. 4 | |
| 185. |
Which one of the following command will change our primary prompt from $ to C> ? |
| A. | PS1=”C> “ |
| B. | PS2=”C>” |
| C. | PS1=”>C” |
| D. | PS2=”< div> /**/ /**/ /**/ _x000D_ (adsbygoogle = window.adsbygoogle || []).push({});_x000D_ /**/ Answer : A /**/ /**/ /**/ _x000D_ (adsbygoogle = window.adsbygoogle || []).push({});_x000D_ /**/ |
| Answer» B. PS2=”C>” | |
| 186. |
____ command is used to display the environment variables only. |
| A. | set |
| B. | env |
| C. | sh |
| D. | var |
| Answer» C. sh | |
| 187. |
To find out how efficiently a program a used the system resources, which command is used? |
| A. | sys |
| B. | time |
| C. | crontab |
| D. | daemon |
| Answer» C. crontab | |
| 188. |
Which of the following command will remove the current crontab? |
| A. | crontab -p |
| B. | crontab -l |
| C. | crontab -e |
| D. | crontab -r |
| Answer» E. | |
| 189. |
What is cron? |
| A. | a simple process |
| B. | an orphan process |
| C. | a daemon |
| D. | a zombie process |
| Answer» D. a zombie process | |
| 190. |
What is a daemon? |
| A. | process whose parent has died |
| B. | process who has completed its execution but still has an entry in the process table |
| C. | process which is running infinitely |
| D. | process which runs automatically without any user interaction |
| Answer» E. | |
| 191. |
Which command permits to schedule jobs for later execution, as soon as the system load permits? |
| A. | at |
| B. | % |
| C. | batch |
| D. | cron |
| Answer» D. cron | |
| 192. |
Jobs scheduled using batch command can be removed using ___ option. |
| A. | -a |
| B. | -d |
| C. | -f |
| D. | -r |
| Answer» E. | |
| 193. |
To remove a job from the queue, which option is used with at command? |
| A. | -r |
| B. | -l |
| C. | -e |
| D. | -t |
| Answer» B. -l | |
| 194. |
Which one of the following forms used with at command is invalid? |
| A. | at noon |
| B. | at now +2 years |
| C. | at 3:07 + 1 day |
| D. | at morning |
| Answer» E. | |
| 195. |
We can list the jobs queued using at command by using ____ option. |
| A. | -p |
| B. | -v |
| C. | -l |
| D. | -r |
| Answer» D. -r | |
| 196. |
We can use the _____ symbol with at command to redirect our output to a specified file |
| A. | > |
| B. | < |
| C. | >> |
| D. | % |
| Answer» B. < | |
| 197. |
Which of the following is not a part of job control facilities? |
| A. | relate a job to the background |
| B. | bring it back to the foreground |
| C. | kill a job |
| D. | create a new job |
| Answer» E. | |
| 198. |
Which command is used to list the status of jobs? |
| A. | fg |
| B. | JOBS |
| C. | jobs |
| D. | fg |
| Answer» D. fg | |
| 199. |
___ command will bring the background jobs to the foreground. |
| A. | bg |
| B. | fg |
| C. | ctrl-Z |
| D. | kill |
| Answer» C. ctrl-Z | |
| 200. |
nice command is a ______ command in C shell. |
| A. | internal |
| B. | external |
| C. | built-in |
| D. | directory |
| Answer» D. directory | |