🧀 Learn Linux

Master · Observation System

mkfs:Create file system

Syntax

mkfs -t Type Device

Examples

sudo mkfs -t ext4 /dev/sdb1

Usage and sandbox support

For review only: practice in a real Linux environment, this sandbox does not execute this command. Creating a file system overwrites device data.

This command is for reference and review, and the simulation terminal does not provide corresponding exercises yet.

Full documentation ↗

Related commands