Skip to main content

Linux

Disk / Space CMD

Will give the usage of the user you are logged in as

sudo du -h --max-depth=1

image.png

The df command primarily checks disk usage on a mounted filesystem. If you don't include a file name, the output shows the space available on all currently mounted filesystems. Disk space is shown in 1K blocks by default:

df -h

image.png

List All Block Devices in Linux

lsblk

lsblk

image.png

 

image.png