Linux Proc Filesystem Questions & Answers – 1

DigitalOcean Referral Badge DigitalOcean Referral Badge

1.

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 these

Answer: Option 'A'

currently mapped memory regions

DigitalOcean Referral Badge

2.

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 these

Answer: Option 'A'

/proc/[PID]/fd

DigitalOcean Referral Badge

3.

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 these

Answer: Option 'A'

/proc/[PID]/environ

DigitalOcean Referral Badge

4.

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 these

Answer: Option 'A'

symbolic link to current directory of the process
 

DigitalOcean Referral Badge
    DigitalOcean Referral Badge DigitalOcean Referral Badge

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 these

Answer: Option 'B'

zombie process

DigitalOcean Referral Badge

6.

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 these

Answer: Option 'A'

describes control groups to which the process belongs

DigitalOcean Referral Badge

7.

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 these

Answer: Option 'D'

all of these

DigitalOcean Referral Badge

8.

Proc filesystem provides the information about

   A.) processes
   B.) processor
   C.) proxy server
   D.) none of these

Answer: Option 'A'

processes

DigitalOcean Referral Badge

9.

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 these

Answer: Option 'D'

none of these

DigitalOcean Referral Badge

Linux Proc Filesystem Questions & Answers – 1 Download Pdf

Recent Posts