250+ TOP MCQs on Linux Proc Filesystem and Answers

Linux / Unix questions and answers focuses on variables in Linux Proc Filesystem. This is set 5.1. Which file is used primarily for diagnosing memory fragmentation issues ?
a) /proc/buddyinfo
b) /proc/meminfo
c) /proc/apm
d) none of the mentioned

Answer: a
Clarification: None.

2. Which file shows the parameter passed to kernel at the time of starting?
a) /proc/apm
b) /proc/cmdline
c) both /proc/apm and /proc/cmdline
d) none of the mentioned

Answer: b
Clarification: None.

3. For the system having one processor, the processor identifying number in the file /proc/cpuinfo is
a) 0
b) 1
c) 2
d) 3

Answer: b
Clarification: None.

4. The file /proc/execdomains lists the
a) execution domains currently supported by the linux kernel
b) all domains of all processes
c) registered ISA DMA channel in use
d) none of the mentioned

Answer: a
Clarification: None.

5. The file /proc/kcore displays a size of
a) RAM
b) RAM plus 4 KB
c) RAM plus 8 KB
d) None of the mentioned

Answer: b
Clarification: None.

6. /bin/dmesg picks the messages from
a) /proc/kmesg
b) /sbin/klogd
c) both /proc/kmesg and /sbin/klogd
d) none of the mentioned

Answer: a
Clarification: None.

7. The file /proc/locks displays the file currently locked by the
a) kernel
b) user
c) superuser
d) none of the mentioned

Answer: a
Clarification: None.

8. The file /proc version shows the version of ______ used in the system.
a) kernel
b) gcc
c) both kernel and gcc
d) none of the mentioned

Answer: c
Clarification: None.

9. What is /proc/self ?
a) a directory
b) link to the currently running process
c) it allows a process to look itself without having to know its process ID
d) all of the mentioned

Answer: d
Clarification: None.

10. The /sbin/sysctl command is used to
a) view kernel settings in the /proc/sys/ directory
b) set kernel settings in the /proc/sys/ directory
c) automate kernel settings in the /proc/sys/ directory
d) all of the mentioned

Answer: d

Leave a Reply

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