Linux Proc Filesystem Questions & Answers – 2

DigitalOcean Referral Badge DigitalOcean Referral Badge

1.

/proc/partitions contains

   A.) major number of each partition
   B.) minor number of each partition
   C.) number of block and partition name
   D.) all of these

Answer: Option 'D'

all of these

DigitalOcean Referral Badge

2.

The file /proc/modules is a text list of

   A.) static modules
   B.) dynamic modules
   C.) modules that have been loaded by the system
   D.) none of these

Answer: Option 'C'

modules that have been loaded by the system

DigitalOcean Referral Badge

3.

Which file of the proc filesystem can be used instead of “syslog” system call to read kernel messages?

   A.) /proc/kmsg
   B.) /proc/moudle/kmsg
   C.) /proc/module/msg
   D.) /proc/msg

Answer: Option 'A'

/proc/kmsg

DigitalOcean Referral Badge

4.

The proc filesystem records the number of interrupts

   A.) per CPU only
   B.) per IO device only
   C.) per CPU per IO device
   D.) none of these

Answer: Option 'C'

per CPU per IO device

DigitalOcean Referral Badge
    DigitalOcean Referral Badge DigitalOcean Referral Badge

5.

The file /proc/cpuinfo is a collection of

   A.) cpu items
   B.) architecture independent items
   C.) both cpu items and architecture independent items
   D.) none of these

Answer: Option 'A'

cpu items

DigitalOcean Referral Badge

6.

The file /proc/devices is the

   A.) text listing of major numbers
   B.) text listing of device groups
   C.) text listing of major numbers & device groups
   D.) none of these

Answer: Option 'C'

text listing of major numbers & device groups

DigitalOcean Referral Badge

7.

Proc filesystem does not contains

   A.) sub-directories for installed buses
   B.) device files
   C.) list of registered DMA
   D.) none of these

Answer: Option 'B'

device files

DigitalOcean Referral Badge

8.

Which one of the following is not correct?

   A.) proc filesystem does not contain any directory for thread in the process
   B.) in multithread process thread details will not be available if the main thread is already terminated
   C.) proc filesystem contain any directory
   D.) none of these

Answer: Option 'A'

proc filesystem does not contain any directory for thread in the process

DigitalOcean Referral Badge

9.

“ps” command uses the file _____ to provide the information.

   A.) /proc/[PID]/stat
   B.) /proc/[PID]/smaps
   C.) /proc/[PID]/oom_score_adj
   D.) /proc/[PID]/oom_score

Answer: Option 'A'

/proc/[PID]/stat

DigitalOcean Referral Badge
    DigitalOcean Referral Badge DigitalOcean Referral Badge

10.

What is /proc/[PID]/root?

   A.) symbolic link that points to the process’s root directory
   B.) regular file which holds all the PID of the system
   C.) root directory
   D.) does not exists in the proc filesystem

Answer: Option 'A'

symbolic link that points to the process’s root directory

DigitalOcean Referral Badge

Linux Proc Filesystem Questions & Answers – 2 Download Pdf

Recent Posts