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.
Using the mkfs binary with the help option the answer is ext2 (this was done on an ubuntu noble machine)
"Usage:
mkfs [options] [-t <type>] [fs-options] <device> [<size>]
Make a Linux filesystem.
Options:
-t, --type=<type> filesystem type; when unspecified, 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
...
...
This section is not available anymore. Please use the main Exam Page.101-500 Exam Questions
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, 4 months agoMalicaide
Highly Voted 4 years, 9 months agokaioh
Most Recent 1 week, 1 day agoawtsuritacuna
4 months, 1 week agoNaseerAkbari
5 months, 2 weeks agoducle97
8 months, 1 week agomichael_stefano01
1 year agoBlindspot205
1 year, 3 months agoTewodros89
1 year, 7 months agocaprcisco
1 year, 8 months agoDlm17
2 years agoerikseals
2 years, 10 months agoFantaCola
3 years, 2 months agoMartiFC
3 years, 2 months agoCuriousLinuxCat
4 years agotechalik
4 years, 4 months agogerben
4 years, 11 months agocast7omadrid1
4 years, 11 months ago