Check disk usage in unix? – 3Minutes: Tutorial

How to check disk usage in unix?

Here is how you can check disk usage in unix via terminal.

Disk usage is a critical thing in servers, Certain times the web service or server acts weird and it could be disk space being full.

In order to check the disk space we can use “df” command in unix. which will show us the disk/file system, used and available disk quantity. also the mount location of the disk.

We have discussed below listed commands

  1. df – disk usage checking
  2. man – man is nothing but manual, by passing the command as parameter to this command will open the manual for the command in parameter.

df command

aryanz_co_in@pop-os:~$ df -h
df: /run/user/1001/doc: Operation not permitted
Filesystem      Size  Used Avail Use% Mounted on
tmpfs           1.6G  2.1M  1.6G   1% /run
/dev/sda2       723G  111G  575G  17% /
tmpfs           7.8G   87M  7.7G   2% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           4.0M     0  4.0M   0% /sys/fs/cgroup
/dev/sda1       1.5G  199M  1.3G  14% /boot/efi
How to check disk usage via terminal in unix?
~3Minutes: Tutorial

Share this Post