Linux mkfs Command

In this tutorial we learn how to use mkfs commmand in Linux. mkfs command is mkfs - build a Linux filesystem

What is Linux mkfs Command?

In this tutorial we learn how to use mkfs command in Linux. mkfs command is mkfs - build a Linux filesystem

mkfs Syntax

       mkfs [options] [-t type] [fs-options] device [size]

mkfs Examples

mkfs Command Manual / Help

We can use man and info command to see the manual page of mkfs command.

mkfs command also have --help option to show list of options.

To open man page for mkfs command we can use command below. To exit man or info page you can press q.

man mkfs

To open info page for mkfs command we can use command below.

info mkfs

To open help page from mkfs command we can run command below.

mkfs --help

Linux mkfs Command Source Code

You can find mkfs command source code from the folowing repositories:

You can read tutorials of related Linux commands below:

Summary

In this tutorial we learn how to use mkfs in Linux with practical examples. Visit our Linux Commands guide to learn more about using command line interface in Linux.