Explore topic-wise MCQs in Unix.

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

1.

For moving two level up in the file hierarchy system using cd command once, we separates ( . . ) by which symbol?

A. ?
B. $
C. *
D. /
Answer» E.
2.

The output of the following command is __________

A. copies .user_06 file in current directory
B. copies .user_06 file in parent directory of directory named abd
C. undefined behaviour
D. erroneous outputView Answer
Answer» B. copies .user_06 file in parent directory of directory named abd
3.

The output of $HOME is an example of absolute pathname.

A. True
B. False
Answer» B. False
4.

cd /bin/user/directory/abc is an example of relative pathname.

A. True
B. False
Answer» C.
5.

$ cp file_01 . copies the file named file_01 in ____ directory

A. current
B. parent
C. root
D. user
Answer» B. parent
6.

$ cd . . is used to move ___ level up in the file hierarchy.

A. two
B. one
C. three
D. zero
Answer» C. three
7.

The output of?#HOME is an example of absolute pathname?

A. True
B. False
Answer» B. False
8.

cd /bin/user/directory/abc is an example of relative pathname.

A. True
B. False
Answer» C.
9.

$ cp file_01 . copies the file named file_01 in ____ directory

A. current
B. parent
C. root
D. user
Answer» B. parent
10.

cd . . is used to move ___ level up in the file hierarchy.

A. two
B. one
C. three
D. zero
Answer» C. three
11.

Which of the following cryptic symbols are used in relative pathname?

A. ( . )
B. ( . . )
C. $
D. ( . ) and ( . . )
Answer» E.
12.

What is a relative pathname?

A. pathname relative to parent directory
B. pathname relative to root (/)
C. pathname relative to parent and current directory
D. pathname relative to current directory
Answer» D. pathname relative to current directory
13.

What is an absolute pathname?

A. pathname relative to a parent directory
B. pathname relative to the root (/)
C. pathname relative to parent and current directory
D. pathname relative to the current directory
Answer» C. pathname relative to parent and current directory
14.

Pathname is a sequence of symbols and directories indicating the location of a file.

A. True
B. False
Answer» B. False