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
Explanation: None.
2. Proc filesystem provides the information about
a) processes
b) processor
c) proxy server
d) none of the mentioned
View Answer
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
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
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.
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
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
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
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
Explanation: 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
View Answer
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
Explanation: None.
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.
- Apply for Linux Internship
- Apply for Programming Internship
- Buy Linux Books
- Buy Information Technology Books
- Practice Programming MCQs