Managing Disks and Space

Disk Info

df -h : displays the information of device name, total blocks, total disk space, used disk space, available disk space and mount points on a file system (-h displays output in readable format).

sudo du -mxsh * | sort -n : The du command summarises the disk usage of each file.

mount | grep root : displays mount points with "root" in them
sudo pvdisplay : display attributes of a physical volume
sudo lvdisplay : display attributes of a logical volume

Disk restructuring & resizing (LVM)

Other

sudo yum clean all : cleans cache


Revision #3
Created 2024-03-27 05:33:17 UTC by Admin
Updated 2024-05-09 01:21:44 UTC by Admin