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.

The command cd * will work.

A. True
B. False
Answer» B. False
2.

Which of the following shell doesn’t support ! symbol for negating the character class?

A. bash
B. bash
C. POSIX
D. C
Answer» E.
3.

Which of the following symbol is used for negating the character class?

A. .
B. *
C. !
D. %
Answer» D. %
4.

Which of the following files will not be listed using the following command?

A. chap02
B. chap05
C. chap01
D. chap04View Answer
Answer» C. chap01
5.

rm chap0[1234] will delete all of the following files.

A. True
B. FalseView Answer
Answer» B. FalseView Answer
6.

* and ? cannot match ____

A. /
B. $
C. .
D. / and .
Answer» E.
7.

Which of the following command will list all the hidden filenames in our directory having at least three characters after the dot (.)?

A. ls
B. ls -a
C. ls .???*
D. ls *
Answer» D. ls *
8.

Which of the following files will not be deleted using “rm chap??” ?

A. chap01
B. chap02
C. chaptd
D. chactd
Answer» E.
9.

Which command would be most suitable to remove the following files?

A. rm dir?
B. rm dirx diry dirz dirzw
C. rm *
D. rm dir*View Answer
Answer» B. rm dirx diry dirz dirzw
10.

Which of the following is not a wild-card?

A. *
B. ?
C. $
D. %
Answer» D. %
11.

Wildcards are special characters which are used to replace or represent one or more characters.

A. True
B. False
Answer» B. False