MCQ

Linux MCQs – File systems

Multiple choice questions and answers (MCQs) on Linux focuses on “File systems” to prepare for exams, interviews, and certifications, such as Redhat exam, CompTIA exam, Ubuntu / SuSE certification, LPI certification exam. These MCQs will easily prepare anyone to pass their Linux test.
 

1. Which command is used to check file system usage?

A mount

B df

C du

D dd

B
df (short for disk free) is a standard Unix command used to display information about the disk space available for file systems to which the user has appropriate read access.

 

 

2. Which file system has the ability to do logging?

A Ext2

B Ext4

C Isofs

D Procfs
 

 
B
Ext4 is the evolution of the most widely used Linux file system, Ext4 is a more significant improvement over Ext3 and Ext2. Ext3 was mainly about adding logging to Ext2, but Ext4 changes important data structures in the file system, such as those for storing file data.

 

 

3. The CDROM file system is _______

A Ext4

B Ext3

C Isofs

D Procfs

C
ISOFS is the file system for CDROMs.

 

 

4. Which file system can be used to change some kernel parameters using the “sysctl” command?

A Sysfs

B Ext3

C Procfs

D Ext4

C
SYSCTL is a command to check and modify kernel parameters. It is implemented in PROCFS.

 

 

5. Which of the following options provides fast file system recovery?

A Ext2

B Sysfs

C Cache

D Logging

D
Logging allows quick recovery of the file system after a crash.

 

 
 

6. Which command is used to mount the file system as read-only?

A mount –a

B mount –v

C mount –f

D mount –r

D
To mount the file system in read-only mode, use the following command:

$ mount –r

 

 

7. ______ is a directory (which should exist) on which we mount the file system?

A Root

B Boot

C Mount point

D Partition

C
A mount point is a directory(usually empty) accessible to the file system on which it is mounted.

 

 

8. Which file contains the file systems to be mounted automatically at boot time?

A /etc/mount

B /etc/fstab

C /etc/inittab

D /etc/boot

B
The /etc/fstab configuration file contains the information necessary to automate the process of mounting partitions. In short, mounting is the process by which a raw (physical) partition is prepared for access and assigned to a location on the file system tree (or mount point).

 

 

9. The file’s attribute information is stored in which structure on the disk?

A Inode

B Data blocks

C File blocks

D Directory file
 

 
A
Each inode stores the attributes and location of the object’s data disk block(s).

 

 

10. Binary or executable files are _____ ?

A Regular files

B Files of type devices

C Special files

D Directory files

A
A majority of files found on UNIX and Linux systems are regular files. Regular files contain ASCII text (human readable), binary or executable program files.

 

 
mcqMCQPractice competitive and technical Multiple Choice Questions and Answers (MCQs) with simple and logical explanations to prepare for tests and interviews.Read More

Leave a Reply

Your email address will not be published. Required fields are marked *