What command do you use to create Linux file systems? A. fdisk B. mkfs C. fsck D. mount E. None of the above

fdisk
mkfs
fsck
mount E. None of the above

The correct answer is B. mkfs.

fdisk is used to partition a disk.
fsck is used to check and repair a file system.
mount is used to attach a file system to a directory.
None of the above commands create a file system.

mkfs is a command-line utility that creates a file system on a disk partition. It is available on most Unix-like operating systems, including Linux.

To create a file system with mkfs, you must specify the type of file system you want to create and the device name of the partition you want to create the file system on. For example, to create an ext4 file system on the /dev/sda1 partition, you would use the following command:

mkfs.ext4 /dev/sda1

mkfs can also be used to create other types of file systems, such as xfs, btrfs, and zfs. For a list of supported file systems, see the mkfs man page.

Exit mobile version