250+ TOP MCQs on Linux Filesystem Hierarchy and Answers

Linux / Unix questions and answers focuses on linux filesystem hierarchy. This is set-2.1. When we install a new package in linux system, then
a) all the files of the packages are installed in a single directory
b) different files are installed at different locations of the file system
c) package works just after extraction, installation is not required
d) none of the mentioned

Answer: b
Clarification: None.

2. Host specific configuration files are installed in
a) /etc directory
b) /lib directory
c) /root directory
d) /bin directory

Answer: a
Clarification: None.

3. The directory /media is the
a) mount point for removable media
b) mount point for filesystem
c) mount point for removable media & filesystem
d) none of the mentioned

Answer: a
Clarification: None.

4. What is /bin/sh ?
a) bourne shell
b) hard or symbolic link to the real shell command
c) bash shell
d) both bash shell and bourne shell

Answer: b
Clarification: None.

5. The /boot directory stores the data that is used
a) before the kernel begins executing user mode programs
b) after the kernel begins executing user mode programs
c) before the bootloader is loaded in the RAM
d) none of the mentioned

Answer: a
Clarification: None.

6. Which one of the directory does not contain binary files?
a) /bin
b) /sbin
c) /etc
d) none of the mentioned

Answer: c
Clarification: None.

7. Kernel modules are present in
a) /lib directory
b) /root directory
c) /boot directory
d) none of the mentioned

Answer: a
Clarification: None.

8. The directory /opt is reserved for
a) installation of add-on application software packages
b) optional booting files
c) optional user specific files
d) none of the mentioned

Answer: a
Clarification: None.

9. The directory /srv contains
a) site-specific data which is served by the system
b) all the system files
c) all the service files provided by the specific user
d) none of the mentioned

Answer: a
Clarification: None.

10. Any file or directory present in the ______ directory may not be reserved between the invocation of the program.
a) /var
b) /tmp
c) /etc
d) all of the mentioned

Answer: b
Clarification: None.

Leave a Reply

Your email address will not be published. Required fields are marked *