Forrest logo
back to the mkfs.ntfs tool

mkfs.ntfs:tldr:d08d1

mkfs.ntfs: Create a NTFS filesystem inside partition 1 on device b (`sdb1`).
$ mkfs.ntfs ${-dev-sdb1}
try on your machine

The command "mkfs.ntfs ${-dev-sdb1}" is used to create a new NTFS file system on the partition /dev/sdb1.

Let's break it down:

  • "mkfs.ntfs" is the command to create an NTFS file system. It is a utility used in Linux to format a disk partition with the NTFS file system.

  • "${-dev-sdb1}" is a placeholder or variable that represents the partition on which the NTFS file system will be created. Typically, in Linux, partitions are represented as /dev/sdXn where "X" is a letter denoting the disk, and "n" is a number indicating the partition on that disk.

So, in this command, you need to replace "${-dev-sdb1}" with the correct partition path like "/dev/sdb1" to create an NTFS file system on that partition.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the mkfs.ntfs tool