Linux Foundation Certified System Administrator Exam: Understanding Filesystems with mkfs

What type of filesystem is created by mkfs when executed without additional parameters?

Question

Which type of filesystem is created by mkfs when it is executed with the block device name only and without any additional parameters?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D. E.

A

When the mkfs command is executed with the block device name only and without any additional parameters, it creates a filesystem with default settings. The type of filesystem that is created in this case depends on the default filesystem type configured on the system.

On most Linux systems, the default filesystem type is ext4. Therefore, the most likely answer to this question is option C, ext4.

However, it's worth noting that the default filesystem type can be changed by the system administrator. In such cases, the answer to this question may be different.

For example, if the system administrator has configured the default filesystem type to be ext2, then the answer would be option A, ext2.

Similarly, if the default filesystem type is set to be ext3, then the answer would be option B, ext3.

It's also worth noting that XFS and VFAT are valid filesystem types that can be created using the mkfs command, but they are not the default filesystem types on most Linux systems.

In summary, the answer to this question depends on the default filesystem type configured on the system. However, on most Linux systems, the default filesystem type is ext4, so the correct answer is option C.