Explore topic-wise MCQs in Unix.

This section includes 11 Mcqs, each offering curated multiple-choice questions to sharpen your Unix knowledge and support exam preparation. Choose a topic below to get started.

1.

Which one of the following command will search history list for the previous command having the last occurrence of string cvf?

A. /cvf
B. /cvf [enter]
C. /bkw
D. !cvf
Answer» B. /cvf [enter]
2.

Every shell uses at least one startup script in the user’s home directory, which is executed when the user logs in.

A. True
B. False
Answer» B. False
3.

WHICH_ONE_OF_THE_FOLLOWING_COMMAND_WILL_SEARCH_HISTORY_LIST_FOR_THE_PREVIOUS_COMMAND_HAVING_THE_LAST_OCCURRENCE_OF_STRING_CVF??$

A. /cvf
B. /cvf [enter]
C. /bkw
D. !cvf
Answer» B. /cvf [enter]
4.

Which of the following are history variables?

A. HISTISIZE
B. HISTFILESIZE
C. HISTORY
D. HISTISIZE and HISTFILESIZE
Answer» E.
5.

Which file is executed every time a second shell is called up?

A. .profile
B. rc file
C. .script
D. env.file
Answer» C. .script
6.

Every shell uses at least one startup script in the user’s home directory, which is executed when the user logs in.$

A. True
B. False
Answer» B. False
7.

The ____ acts as a shorthand representation of the home directory.

A. $
B. ~
C. “”
D. %
Answer» C. ‚Äö√Ñ√∂‚àö√ë‚àö‚à´‚Äö√Ñ√∂‚àö√ë‚àöœÄ
8.

To reverse any setting updated by set command we can use ____ symbol.

A. –
B. /
C. +
D. $
Answer» D. $
9.

To prevent accident logging out, we can use ____ as a keyword with the set command.

A. noclobber
B. log out
C. ignoreeof
D. ignore
Answer» D. ignore
10.

Which one of the following keyword is used with the set command to avoid overwrite existing file?

A. nooverwrite
B. ignore
C. clobber
D. noclobber
Answer» E.
11.

set command by default displays the variables in the current shell.

A. True
B. False
Answer» B. False