mkfs.ext4

Creates an ext4 filesystem inside a partition.
More information.
sudo mkfs.ext4 {/dev/sdb1}
sudo mkfs.ext4 -L {volume_label} {/dev/sdb1}
Copyright © 2014—present the tldr-pages team and contributors.
This work is licensed under the Creative Commons Attribution 4.0 International License (CC-BY).
CC-BY