Check filesystem integrity linux
Dry-run fsck check (no changes); unmount first for a live fix
fsck -n /dev/sdb1
more linux
all 133 commands →
Create ext4 filesystem
mkfs.ext4 -L datalabel /dev/sdb1
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