From man pages on centos 7
-t, --type type
Specify the type of filesystem to be built. If not specified, the default filesystem type (currently ext2) is used.
Based on the question, the correct answer is:
E. ext4
Explanation: When the mkfs command is executed with only the block device name and no additional parameters, it defaults to creating an ext4 filesystem.
Here's a quick rundown:
A. XFS: mkfs.xfs would be used to create an XFS filesystem.
B. VFAT: mkfs.vfat would be used for creating a VFAT filesystem, typically for USB drives.
C. ext2: To create an ext2 filesystem, you would use mkfs.ext2.
D. ext3: To create an ext3 filesystem, you would use mkfs.ext3.
E. ext4: This is the default filesystem created by mkfs if no type is specified.
mkfs without any option creates ext2 filesystem
If you don't specify the filesystem type for the target device, it will use the default ext2 filesystem.
sudo mkfs /dev/sdb1
Source: https://linuxhandbook.com/mkfs-command/
I have tried on my ubuntu and what it creates by default is an ext2 partition
upvoted 7 times
...
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
demarko
Highly Voted 4 years agoMalicaide
Highly Voted 4 years, 6 months agoawtsuritacuna
Most Recent 1 month, 1 week agoNaseerAkbari
2 months, 2 weeks agoducle97
5 months agomichael_stefano01
9 months, 3 weeks agoBlindspot205
1 year agoTewodros89
1 year, 4 months agocaprcisco
1 year, 5 months agoDlm17
1 year, 9 months agoerikseals
2 years, 7 months agoFantaCola
2 years, 11 months agoMartiFC
2 years, 11 months agoCuriousLinuxCat
3 years, 9 months agotechalik
4 years, 1 month agogerben
4 years, 8 months agocast7omadrid1
4 years, 8 months ago