Exam LFCS All QuestionsBrowse all questions from this exam
Question 98

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

    Correct Answer: A

    When the mkfs command is executed with only the block device name and no additional parameters, it creates an ext2 filesystem by default. This is specified as the default filesystem type in the mkfs command.

Discussion
rona962Option: A

The mkfs command without any additional parameters will create an ext2 filesystem on the specified block device. Therefore, the correct answer is: A. ext2 Option B (-ext3), Option C (-ext4), Option D (-XFS), and Option E (-VFAT) are not valid options for the mkfs command.

mksaravOption: A

as per the mkfs manpage, -t, --type type Specify the type of filesystem to be built. If not specified, the default filesystem type (currently ext2) is used. so yeah, the revealed answer is correct.