# 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 &amp; resizing (LVM)**

- sudo lvremove /dev/fedora\_baselmania/home
- sudo lvextend -L+90G /dev/fedora\_baselmania/root
- sudo resize2fs /dev/mapper/fedora\_baselmania-root

**Other**

sudo yum clean all : cleans cache