Monday, June 19, 2017

Best method get disk usage from command line

First Method 
$ df -lh
Filesystem      Size      Used  Avail Use% Mounted on
/dev/sda2       518G    39G   453G   8%      /
udev              16G      4.0K   16G   1%      /dev
tmpfs             3.2G    236K  3.2G   1%      /run
none              5.0M     0        5.0M  0%     /run/lock
none              16G      0        16G    0%     /run/shm
/dev/sda1        93M   4.3M   89M   5%     /boot/efi

Second method: For detail disk usage 
Works well from the command line. It's ncurses-based and interactive.
$ncdu /

1 comment:

  1. $ncdu / working nice. Problem solved within a time.

    ReplyDelete