Linux Proc Filesystem Questions & Answers – 1

This set of Linux / Unix questions and answers focuses on Linux Proc Filesystem. This is set-1.

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

Answer: d
Explanation: None.

2. Proc filesystem provides the information about
a) processes
b) processor
c) proxy server
d) none of the mentioned
View Answer

Answer: a
Explanation: None.

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

Answer: d
Explanation: None.

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

Answer: a
Explanation: [PID] represents the process ID of the process. Every system has various running processes, so /proc directory contains various numerical sub-directories and the number shows the PID of the process.
advertisement
advertisement

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

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

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

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

Answer: a
Explanation: None.
advertisement

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

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

Answer: a
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.