TLDR
Enter a command. For example: raspi config, notify send, phpdismod.

mkfs.ext4

 
Creates an ext4 filesystem inside a partition. More information: https://manned.org/mkfs.ext4.
 
  • Create an ext4 filesystem inside partition 1 on device b (sdb1):
     
    sudo mkfs.ext4 {{/dev/sdb1}}
     
  • Create an ext4 filesystem with a volume-label:
     
    sudo mkfs.ext4 -L {{volume_label}} {{/dev/sdb1}}

This is a tldr pages (source, CC BY 4.0) web wrapper for cheat-sheets.org. All commands, popular commands, most used linux commands. Referrals. Progressive Web Application (PWA) version to install on your device.