On Linux, mkfs is responsible for formatting a given partition into a partition format. Unlike other binaries, mkfs split itself into multiple forms connecting the target format with period. Example, for ext4 format, the correct binary is mkfs.ext4. In this section, it covers guidances on using and verifying mkfs binaries.
Before applying mkfs, it is important to know that you should be setting your partition accordingly. This is because mkfs is only responsible to applying a partition format but not partitioning itself. To do partitioning, you need to get to know which one you want.
This section covers the partition formats usage.
That's all about mkfs in Linux OS.