Important Proc Filesystem Objective Questions For Competitive’s
Q – 1 Which one of the directory does not contain binary files?
a) /bin
b) /sbin
c) /etc
d) none of the mentioned
Ans- c) /etc
Q – 2 What is /bin/sh?
a) bourne shell
b) hard or symbolic link to the real shell command
c) bash shell
d) both (b) and (c)
Ans- b) hard or symbolic link to the real shell command
Q – 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 the mentioned
Ans- a) /proc/[PID]/environ
Q – 4 Which file contains the boot options passed to the kernel?
a) /proc/cmdline
b) /proc/root
c) /proc/boot
d) none of the mentioned
Ans- c) /proc/boot
Q – 5 /bin/dmesg picks the messages from:
a) /proc/kmesg
b) /sbin/klogd
c) both (a) and (b)
d) none of the mentioned
Ans- a) /proc/kmesg
Q – 6 The file /proc/locks displays the file currently locked by the:
a) kernel
b) user
c) superuser
d) none of the mentioned
Ans- a) kernel
Q – 7 The file /proc version shows the version of ______ used in the system.
a) kernel
b) gcc
c) both (a) and (b)
d) none of the mentioned
Ans- c) both (a) and (b)
Q – 8 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
Ans- d) all of the mentioned
Q – 9 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
Ans- d) all of the mentioned
Q – 10 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
Ans- b) RAM plus 4 KB
Q – 11 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
Ans- a) execution domains currently supported by the linux kernel
Q – 12 For the system having one processor, the processor identifying number in the file /proc/cpuinfo is:
a) 0
b) 1
c) 2
d) 3
Ans- b) 1
Q – 13 Which file shows the parameter passed to kernel at the time of starting?
a) /proc/apm
b) /proc/cmdline
c) both (a) and (b)
d) none of the mentioned
Ans- b) /proc/cmdline
Q – 14 Which file is used primarily for diagnosing memory fragmentation issues?
a) /proc/buddyinfo
b) /proc/meminfo
c) /proc/apm
d) none of the mentioned
Ans- a) /proc/buddyinfo
Q – 15 The command “echo www.globalguideline.com > /proc/sys/kernel/hostname” will:
a) change the hostname
b) print “www.globalguideline.com”
c) do nothing
d) none of the mentioned
Ans- a) change the hostname
Q – 16 The directory /proc/net contains information about:
a) different network system compiled into the system
b) IP address of the system
c) MAC address of the system
d) none of the mentioned
Ans- a) different network system compiled into the system
Q – 17 The files of /proc directory are
a) stored in secondary memory
b) generated by the kernel
c) both (a) and (b)
d) none of the mentioned
Ans- b) generated by the kernel
Q – 18 Accessing the file /proc/meminfo gives the different result each time because:
a) memory usages is always fluctuating
b) a new process id is assigned
c) logical address is different from the physical address
d) none of the mentioned
Ans- a) memory usages is always fluctuating
Q – 19 Proc files are:
a) read-only files
b) read-write files
c) both (a) and (b)
d) none of the mentioned
Ans- c) both (a) and (b)
Q – 20 Most files and directories within /proc are 0 bytes in size because:
a) proc filesystem exists only as a reflection of the in-memory kernel data structure
b) these files contains very only one or two instructions
c) both(a) and (b)
d) none of the mentioned
Ans- a) proc filesystem exists only as a reflection of the in-memory kernel data structure
Q – 21 With the help of proc filesystem:
a) kernel and kernel modules can send the information to processes
b) process information can be accessed
c) both (a) and (b)
d) none of the mentioned
Ans- c) both (a) and (b)
Q – 22 The file /proc/[PID]/mountinfo contains:
a) major minor numbers of device files
b) root of the mount within the filesystem
c) mount point relative to the process’s root
d) all of the mentioned
Ans- d) all of the mentioned
Q – 23 Which one of the following command will print the environment of process 1?
a) cat /proc/1/environ
b) cat /proc/bin/1/env
c) cat /proc/1/var/env
d) none of the mentioned
Ans- a) cat /proc/1/environ
Q – 24 The command “cd /proc/10/cwd” provides the:
a) current working directory of process having PID 10
b) current status of the process having PID 10
c) current version of the filesystem
d) none of the mentioned
Ans- a) current working directory of process having PID 10
Q – 25 /proc/tty contains the information about:
a) current terminal
b) all terminals
c) both (a) and (b)
d) none of the mentioned
Ans- a) current terminal
Q – 26 The file /proc/swaps contains the:
a) list of active swap partitions
b) sizes of the swap partitions
c) priorities of the swap partitions
d) all of the mentioned
Ans- d) all of the mentioned
Q – 27 The buddy algorithm handles the:
a) memory fragmentation
b) DHCP server
c) routing
d) none of the mentioned
Ans- a) memory fragmentation
Q – 28 The list of available frame buffers are stored in:
a) /proc/[PID]/fb
b) /proc/fb
c) /proc/etc/fb
d) none of the mentioned
Ans- b) /proc/fb
Q – 29 The directory /proc/[PID]/tasks contains:
a) hard links to any task that have been started by this process
b) files that containing tasks that have been started by this process
c) sub-direcories of various tasks
d) none of the mentioned
Ans- a) hard links to any task that have been started by this process
Q – 30 Which one of the following is a sym-link to the root path as seen by the process?
a) /proc/[PID]/root
b) /proc/[PID]/path
c) both (a) and (b)
d) none of the mentioned
Ans- a) /proc/[PID]/root
Q – 31 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
Ans- a) symbolic link to current directory of the process
Q – 32 Which one of the following contains various bits of information about the state of power management?
a) /proc/acpi
b) /proc/apm
c) both (a) and (b)
d) none of the mentioned
Ans- c) both (a) and (b)
Q – 33 Obtaining of the PID can be done by the utility:
a) pgrep
b) pidof
c) ps
d) all of the mentioned
Ans- d) all of the mentioned
Q – 34 Which one of the following operating system does not supports proc filesystem?
a) IBM AIX
b) QNX
c) Solaries
d) none of the mentioned
Ans- d) none of the mentioned
Q – 35 /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 the mentioned
Ans- d) all of the mentioned
Q – 36 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 the mentioned
Ans- c) modules that have been loaded by the system
Q – 37 Which file of the proc file system 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
Ans- a) /proc/kmsg
Q – 38 The proc file system records the number of interrupts:
a) per CPU only
b) per IO device only
c) per CPU per IO device
d) none of the mentioned
Ans- c) per CPU per IO device
Q – 39 The file /proc/cpuinfo is a collection of:
a) cpu items
b) architecture independent items
c) both (a) and (b)
d) none of the mentioned
Ans- a) cpu items
Q – 40 The file /proc/devices is the:
a) text listing of major numbers
b) text listing of device groups
c) both (a) and (b)
d) none of the mentioned
Ans- c) both (a) and (b)
Q – 41 Proc filesystem does not contains:
a) sub-directories for installed buses
b) device files
c) list of registered DMA
d) none of the mentioned
Ans- b) device files
Q – 42 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) both (a) and (b)
d) none of the mentioned
Ans- a) proc filesystem does not contain any directory for thread in the process
Q – 43 “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
Ans- a) /proc/[PID]/stat
Q – 44 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
Ans- a) symbolic link that points to the process’s root directory
Q – 45 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
Ans- a) currently mapped memory regions
Q – 46 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
Ans- d) all of the mentioned
Q – 47 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
Ans- a) /proc/[PID]/fd
Q – 48 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
Ans- b) zombie process
Q – 49 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
Ans- a) describes control groups to which the process belongs
Q – 50 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
Ans- d) all of the mentioned
Q – 51 Proc file system provides the information about:
a) processes
b) processor
c) proxy server
d) none of the mentioned
Ans- a) processes
Q – 52 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
Ans- d) none of the mentioned
Q – 53 Any file or directory present in the ______ directory may not be reserved between the invocation of the program.
a) /var
b) /tmp
c) /etc
d) all of the mentioned
Ans- b) /tmp
Q – 54 The directory /srv contains:
a) site-specific data which is served by the system
b) all the system files
c) all the service files provided by the specific user
d) none of the mentioned
Ans- a) site-specific data which is served by the system
Q – 55 The directory /opt is reserved for:
a) installation of add-on application software packages
b) optional booting files
c) optional user specific files
d) none of the mentioned
Ans- a) installation of add-on application software packages
Q – 56 Kernel modules are present in:
a) /lib directory
b) /root directory
c) /boot directory
d) none of the mentioned
Ans- a) /lib directory
Q – 57 The /boot directory stores the data that is used:
a) before the kernel begins executing user mode programs
b) after the kernel begins executing user mode programs
c) before the bootloader is loaded in the RAM
d) none of the mentioned
Ans- a) before the kernel begins executing user mode programs
Q – 58 The directory /media is the:
a) mount point for removable media
b) mount point for filesystem
c) both (a) and (b)
d) none of the mentioned
Ans- a) mount point for removable media
Q – 59 Host specific configuration files are installed in:
a) /etc directory
b) /lib directory
c) /root directory
d) /bin directory
Ans- a) /etc directory
Q – 60 Superuser can change the _______ permissions of any file.
a) owner
b) group
c) other
d) all of the mentioned
Ans- d) all of the mentioned
Q – 61 In linux filesystem, the passwords of different users are stored in:
a) /etc/passwd file
b) /bin/passwd file
c) /etc/shadow file
d) /bin/shadow file
Ans- c) /etc/shadow file
Q – 62 Linux file-system contains mainly:
a) ordinary files
b) device files
c) directory files
d) all of the mentioned
Ans- d) all of the mentioned
Q – 63 Static files of the boot-loader are installed in:
a) /boot directory
b) /root directory
c) /bin directory
d) /sbin directory
Ans- a) /boot directory
Q – 64 The contents of root file-system is responsible to:
a) boot the system
b) recover the system
c) repair the system
d) all of the mentioned
Ans- d) all of the mentioned
Q – 65 The /dev directory contains the:
a) device drivers
b) device files
c) kernel modules of device drivers
d) none of the mentioned
Ans- b) device files
Q – 66 System binaries are stored in:
a) /sbin directory
b) /usr/sbin directory
c) /usr/local/sbin directory
d) all of the mentioned
Ans- d) all of the mentioned
Q – 67 What is /root?
a) root filesystem
b) home directory of the root user
c) the directory which contains all the directories of the filesystem
d) none of the mentioned
Ans- b) home directory of the root user
Q – 68 Which one of the following is a mount point for a temporarily mounted filesystem?
a) /mnt directory
b) /media directory
c) /dev directory
d) none of the mentioned
Ans- a) /mnt directory
Q – 69 Operating system kernel must be located in:
a) /
b) /boot
c) either in / or in /boot
d) none of the mentioned
Ans- c) either in / or in /boot