<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div dir="auto">Ncdu(1).  It's in EPEL among other places, and IIRC it's not too hard to compile if you absolutely must.</div>
<div dir="auto">Its defaults are sane, but check out the options especially "-x".</div>
<div dir="auto">-Adam</div>
<div><br>
</div>
<div id="ms-outlook-mobile-signature" dir="auto">Get <a href="https://aka.ms/AAb9ysg">
Outlook for Android</a></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Roundtable <roundtable-bounces@muug.ca> on behalf of Chris Audet <cj.audet@gmail.com><br>
<b>Sent:</b> Sunday, February 5, 2023 2:56:04 PM<br>
<b>To:</b> roundtable@muug.ca <roundtable@muug.ca><br>
<b>Subject:</b> [RndTbl] Best ways to find where disk space is being used?</font>
<div> </div>
</div>
<div>
<div dir="ltr">I've got a fairly long lived CentOS server that stubbornly stopped installing updates because the HDD is full.
<div><br>
</div>
<div>Can someone share their favourite way to determine where disk space is being used up on a system?</div>
<div><br>
</div>
<div>For example, on Windows I'd use Wiztree/Treesize/Windirstat.  On Linux desktop I've been using
<a href="https://wiki.gnome.org/Apps/DiskUsageAnalyzer">Gnome Disk Usage Analyzer (aka Baobab)</a>.</div>
<div><br>
</div>
<div>But I'm not sure what the best solutions are in cases where there's no GUI available.  I could always mount / over SSH and use Baobab to crawl the remote filesystem, but that seems less than optimal ðŸ¤”<br>
<div><br>
</div>
<div><font face="monospace">[root@dogmeat ~]# yum update<br>
Loaded plugins: fastestmirror, versionlock<br>
Loading mirror speeds from cached hostfile<br>
 * base: <a href="http://mirror.csclub.uwaterloo.ca">mirror.csclub.uwaterloo.ca</a><br>
 * epel: <a href="http://ftp.cse.buffalo.edu">ftp.cse.buffalo.edu</a><br>
 * extras: <a href="http://mirror.xenyth.net">mirror.xenyth.net</a><br>
 * updates: <a href="http://mirror.csclub.uwaterloo.ca">mirror.csclub.uwaterloo.ca</a><br>
Excluding 5 updates due to versionlock (use "yum versionlock status" to show them)<br>
Resolving Dependencies<br>
--> Running transaction check<br>
---> Package bind-export-libs.x86_64 32:9.11.4-26.P2.el7_9.10 will be updated<br>
---> Package bind-export-libs.x86_64 32:9.11.4-26.P2.el7_9.13 will be an update<br>
---> Package bind-libs.x86_64 32:9.11.4-26.P2.el7_9.10 will be updated<br>
---> Package bind-libs.x86_64 32:9.11.4-26.P2.el7_9.13 will be an update<br>
---> Package bind-libs-lite.x86_64 32:9.11.4-26.P2.el7_9.10 will be updated<br>
---> Package bind-libs-lite.x86_64 32:9.11.4-26.P2.el7_9.13 will be an update<br>
---> Package bind-license.noarch 32:9.11.4-26.P2.el7_9.10 will be updated<br>
---> Package bind-license.noarch 32:9.11.4-26.P2.el7_9.13 will be an update<br>
---> Package bind-utils.x86_64 32:9.11.4-26.P2.el7_9.10 will be updated<br>
---> Package bind-utils.x86_64 32:9.11.4-26.P2.el7_9.13 will be an update<br>
---> Package dkms.noarch 0:3.0.9-2.el7 will be updated<br>
---> Package dkms.noarch 0:3.0.10-1.el7 will be an update<br>
---> Package httpd.x86_64 0:2.4.6-97.el7.centos.5 will be updated<br>
---> Package httpd.x86_64 0:2.4.6-98.el7.centos.6 will be an update<br>
---> Package httpd-tools.x86_64 0:2.4.6-97.el7.centos.5 will be updated<br>
---> Package httpd-tools.x86_64 0:2.4.6-98.el7.centos.6 will be an update<br>
---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.352.b08-2.el7_9 will be updated<br>
---> Package java-1.8.0-openjdk.x86_64 1:1.8.0.362.b08-1.el7_9 will be an update<br>
---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.352.b08-2.el7_9 will be updated<br>
---> Package java-1.8.0-openjdk-headless.x86_64 1:1.8.0.362.b08-1.el7_9 will be an update<br>
---> Package kernel.x86_64 0:3.10.0-1160.83.1.el7 will be installed<br>
---> Package kernel-devel.x86_64 0:3.10.0-1160.83.1.el7 will be installed<br>
---> Package kernel-headers.x86_64 0:3.10.0-1160.81.1.el7 will be updated<br>
---> Package kernel-headers.x86_64 0:3.10.0-1160.83.1.el7 will be an update<br>
---> Package kernel-tools.x86_64 0:3.10.0-1160.81.1.el7 will be updated<br>
---> Package kernel-tools.x86_64 0:3.10.0-1160.83.1.el7 will be an update<br>
---> Package kernel-tools-libs.x86_64 0:3.10.0-1160.81.1.el7 will be updated<br>
---> Package kernel-tools-libs.x86_64 0:3.10.0-1160.83.1.el7 will be an update<br>
---> Package python-perf.x86_64 0:3.10.0-1160.81.1.el7 will be updated<br>
---> Package python-perf.x86_64 0:3.10.0-1160.83.1.el7 will be an update<br>
---> Package sudo.x86_64 0:1.8.23-10.el7_9.2 will be updated<br>
---> Package sudo.x86_64 0:1.8.23-10.el7_9.3 will be an update<br>
---> Package xorg-x11-server-Xvfb.x86_64 0:1.20.4-19.el7_9 will be updated<br>
---> Package xorg-x11-server-Xvfb.x86_64 0:1.20.4-21.el7_9 will be an update<br>
---> Package xorg-x11-server-common.x86_64 0:1.20.4-19.el7_9 will be updated<br>
---> Package xorg-x11-server-common.x86_64 0:1.20.4-21.el7_9 will be an update<br>
--> Finished Dependency Resolution<br>
--> Running transaction check<br>
---> Package kernel.x86_64 0:3.10.0-1160.45.1.el7 will be erased<br>
---> Package kernel-devel.x86_64 0:3.10.0-1160.45.1.el7 will be erased<br>
--> Finished Dependency Resolution<br>
<br>
Dependencies Resolved<br>
<br>
================================================================================<br>
 Package                      Arch    Version                   Repository<br>
                                                                           Size<br>
================================================================================<br>
Installing:<br>
 kernel                       x86_64  3.10.0-1160.83.1.el7      updates    52 M<br>
 kernel-devel                 x86_64  3.10.0-1160.83.1.el7      updates    18 M<br>
Updating:<br>
 bind-export-libs             x86_64  32:9.11.4-26.P2.el7_9.13  updates   1.1 M<br>
 bind-libs                    x86_64  32:9.11.4-26.P2.el7_9.13  updates   158 k<br>
 bind-libs-lite               x86_64  32:9.11.4-26.P2.el7_9.13  updates   1.1 M<br>
 bind-license                 noarch  32:9.11.4-26.P2.el7_9.13  updates    92 k<br>
 bind-utils                   x86_64  32:9.11.4-26.P2.el7_9.13  updates   262 k<br>
 dkms                         noarch  3.0.10-1.el7              epel       85 k<br>
 httpd                        x86_64  2.4.6-98.el7.centos.6     updates   2.7 M<br>
 httpd-tools                  x86_64  2.4.6-98.el7.centos.6     updates    94 k<br>
 java-1.8.0-openjdk           x86_64  1:1.8.0.362.b08-1.el7_9   updates   317 k<br>
 java-1.8.0-openjdk-headless  x86_64  1:1.8.0.362.b08-1.el7_9   updates    33 M<br>
 kernel-headers               x86_64  3.10.0-1160.83.1.el7      updates   9.1 M<br>
 kernel-tools                 x86_64  3.10.0-1160.83.1.el7      updates   8.2 M<br>
 kernel-tools-libs            x86_64  3.10.0-1160.83.1.el7      updates   8.1 M<br>
 python-perf                  x86_64  3.10.0-1160.83.1.el7      updates   8.2 M<br>
 sudo                         x86_64  1.8.23-10.el7_9.3         updates   844 k<br>
 xorg-x11-server-Xvfb         x86_64  1.20.4-21.el7_9           updates   857 k<br>
 xorg-x11-server-common       x86_64  1.20.4-21.el7_9           updates    57 k<br>
Removing:<br>
 kernel                       x86_64  3.10.0-1160.45.1.el7      @updates   64 M<br>
 kernel-devel                 x86_64  3.10.0-1160.45.1.el7      @updates   38 M<br>
<br>
Transaction Summary<br>
================================================================================<br>
Install   2 Packages<br>
Upgrade  17 Packages<br>
Remove    2 Packages<br>
<br>
Total size: 144 M<br>
Is this ok [y/d/N]: y<br>
Downloading packages:<br>
Running transaction check<br>
Running transaction test<br>
<br>
<br>
Transaction check error:<br>
  installing package python-perf-3.10.0-1160.83.1.el7.x86_64 needs 23MB on the / filesystem<br>
  installing package sudo-1.8.23-10.el7_9.3.x86_64 needs 26MB on the / filesystem<br>
  installing package kernel-3.10.0-1160.83.1.el7.x86_64 needs 106MB on the / filesystem<br>
  installing package bind-export-libs-32:9.11.4-26.P2.el7_9.13.x86_64 needs 109MB on the / filesystem<br>
<br>
<b>Error Summary<br>
-------------<br>
Disk Requirements:<br>
  At least 109MB more space needed on the / filesystem.</b><br>
<br>
</font></div>
<div><font face="monospace">[root@dogmeat ~]# df -h<br>
Filesystem                              Size  Used Avail Use% Mounted on<br>
devtmpfs                                3.8G     0  3.8G   0% /dev<br>
tmpfs                                   3.9G  148K  3.9G   1% /dev/shm<br>
tmpfs                                   3.9G   11M  3.8G   1% /run<br>
tmpfs                                   3.9G     0  3.9G   0% /sys/fs/cgroup<br>
<b>/dev/mapper/centos_ba--bog--v-root   41G   40G  355M 100% /</b><br>
/dev/sda1                               497M  346M  151M  70% /boot<br>
/dev/mapper/centos_ba--bog--v-home   20G   99M   20G   1% /home<br>
tmpfs                                   779M     0  779M   0% /run/user/0</font><br>
</div>
</div>
</div>
</div>
</body>
</html>