PETERZSIGMOND.DEV
GitHub

Commands

A collection of shell commands for IT people

Shell >

Partitioning

Print block device attributes

blkid

List block devices

lsblk -f
-f: info about filesystems

Manipulate disk partition table

fdisk /dev/sda

Interactive GUID partition table (GPT) manipulator

gdisk /dev/sda

Build a filesystem

mkfs.ext4/ntfs -f -L label /dev/sda1
-f: (NTFS only) fast format (no zeroing and bad sector checking)
-L: volume label