250+ TOP MCQs on Linux Proc Filesystem and Answers

Linux / Unix questions and answers focuses on Linux Proc Filesystem.
1. Which one of the following is not true about proc filesystem?
a) proc filesystem is a pseudo-filesystem
b) proc filesystem is used as an interface to kernel data structures
c) some files in proc filesystem allow kernel variables to be changed
d) none of the mentioned
Answer: d2. Proc filesystem provides the information about
a) processes
b) processor
c) proxy server
d) none of the mentionedAnswer: a

3. The /proc directory contains
a) numerical sub-directory for each running process
b) sub-directories for installed buses
c) a text listing of filesystems which are supported by the kernel
d) all of the mentioned

Answer: d

4. The file /proc/[PID]/cgroups
a) describes control groups to which the process belongs
b) contains the information about all groups of the system
c) provides the information about the group which has generated the process
d) none of the mentioned

Answer: a

5. The file /proc/[PID]/cmdline holds the complete command line for the process, unless the process is a
a) child process
b) zombie process
c) orphan process
d) none of the mentioned

Answer: b
Clarification: A zombie process is the process which has completed execution but still has an entry in the process table.

6. What is /proc/[PID]/cwd?
a) symbolic link to current directory of the process
b) regular file containing the information about the current status of the process
c) directory containing various sub-directories
d) none of the mentioned

Answer: a
Clarification: None.

7. Which one of the following file contains the environment for the process?
a) /proc/[PID]/environ
b) /proc/[PID]/env
c) /proc/[PID]/path
d) none of the mentioned

Answer: a
Clarification: None.

8. The entry for each file opened by the process is present in
a) /proc/[PID]/fd
b) /proc/[PID]/file
c) /proc/[PID]/maps
d) none of the mentioned

Answer: a
Clarification: None.

9. The file /proc/[PID]/limits displays the ______ for each of the process’s resource limits.
a) hard limit
b) soft limit
c) units of measurement
d) all of the mentioned

Answer: d
Clarification: None.

10. The file /proc/[PID]/maps contains the
a) currently mapped memory regions
b) available memory regions
c) memory regions which are free to map
d) none of the mentioned

Answer: a

Leave a Reply

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