List partitions and drives
lsblkManipulate partition or list them with:
fdisk -lUsing the disk free command:
df -hPartition manager utility
parted -lGet detailed info on hardware, memory, firmware, mainboard, bus
lshwRelative to mounted drives:
lshw -class diskGet that information as html (JSON, XML) page:
lshw -class disk -htmlList disks by ID, label, UUID…:
ls -l /dev/disk/by-id
ls -l /dev/disk/by-label
ls -l /dev/disk/by-partlabel
ls -l /dev/disk/by-partuuid
ls -l /dev/disk/by-path
ls -l /dev/disk/by-uuidsfdisk utility for manipulating disk partitions. List block devices:
fsdisk -lsource: https://learnubuntu.com/list-drives/
Smart monitor tool
smartctl -a /dev/nvme0Mount a drive
mkdir /media/usbstick
mount /dev/sdbX /media/usbstickDelete files
Delete all files in all folders starting with 2023 living in the current folder
rm -rf 2023*