← Learn
Dangerous
mkfs.ext4 /dev/sda1

linux · bash · Intermediate

Creates a new empty filesystem on a partition, which discards everything currently stored there. Formatting is the intended behaviour, so there is no confirmation prompt and no way back once it starts.

Signals to notice

  • Formats a block device
  • Existing data is discarded without prompting

Think you can spot these under time pressure?

Start Training

More File System