Everything from raw block devices up to the files on them. Many commands here are destructive: they are marked, and the device names (/dev/sdX) are placeholders. Always confirm the target with lsblk -o NAME,SIZE,MODEL,MOUNTPOINT first.
Block devices¶
- Inspect and partition: parted, partprobe, blockdev, kpartx, wipefs
- Imaging and copying: dd
- Health and testing: smartmontools, badblocks, hdparm
- Media: eject
Volumes and RAID¶
- Logical volumes: LVM
- Software RAID: mdadm RAID, replacing a RAID1 drive
Filesystems¶
- Local filesystems: ext4, XFS
- Network and distributed: NFS, Ceph
- Layout: Filesystem Hierarchy Standard
- Working with filesystems: mount, fsck, filefrag, sync
- Reference: kernel filesystem documentation
File management¶
- Find and measure: find, du, fdupes
- Copy and move: rsync, mv, rename, trash
- Attributes: chattr
- Text comparison lives in text processing (diff, patch)