Linux Proc Filesystem Questions & Answers – 5

This set of 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
View Answer

Answer: a
Explanation: 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
View Answer

Answer: b
Explanation: 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
View Answer

Answer: b
Explanation: 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
View Answer

Answer: a
Explanation: None.
advertisement
advertisement

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
View Answer

Answer: b
Explanation: 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
View Answer

Answer: a
Explanation: None.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

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

Answer: a
Explanation: 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
View Answer

Answer: c
Explanation: None.
advertisement

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
View Answer

Answer: d
Explanation: 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
View Answer

Answer: d
Explanation: None.
advertisement

Sanfoundry Global Education & Learning Series – Linux Administration & Programming.

Here’s the list of Best Books in Linux Commands & Shell Programming.
Here’s the list of Best Books in Linux Kernel, Device-Drivers & System Programming.

To practice all questions on Linux Administration & Programming, here is complete set of 1000+ Multiple Choice Questions and Answers on Linux.

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.