Show disk usage two levels deep
Show the 20 biggest directories in /var, up to 2 levels deep.
du -h --max-depth=2 /var | sort -rh | head -20
- tool
- linux133 commands
More linux commands
-
df -hT --type=ext4 --type=xfs --type=btrfsShow free space only for real filesystems (ext4, xfs, btrfs), without tmpfs and overlay.
-
fdisk /dev/sdbOpen an interactive editor for MBR or GPT partition tables.
-
parted /dev/sdb -- mklabel gpt mkpart primary ext4 1MiB 100%Create a new GPT table and one partition on the whole disk. The old partition table is lost.
-
pvs && pvdisplayList LVM physical volumes and how much space they use.
-
vgs && vgdisplayList LVM volume groups with free physical extents (PE).