Create ext4 filesystem linux
Format partition as ext4 with a label
mkfs.ext4 -L datalabel /dev/sdb1
more linux
all 133 commands →
Resize ext4 filesystem
resize2fs /dev/sdb1
Show filesystem info
tune2fs -l /dev/sda1 | grep -E 'Block (count|size)|Mount count|Last mount'
Disk usage with depth
du -h --max-depth=2 /var | sort -rh | head -20
Free disk space summary
df -hT --type=ext4 --type=xfs --type=btrfs
Interactive partition editor
fdisk /dev/sdb