My ongoing quest for modern text-mode utilities has brought another discovery:
gdu, found at https://github.com/dundee/gdu. It’s an interactive text-mode disk usage analyser written with GoLang.
gdu is very fast and simple in use. It allows interactive walking through directories and instant deleting of obsolete files and directories. It’s quite similar to
ncdu but seems much faster. It also has one major additional feature - ability to view file content.
It’s easy to install with the package manager of your choice:
snap etc. or simply straight from sources using
go install github.com/dundee/[email protected]
go versions older than
1.17 use the older, now deprecated
go get -u github.com/dundee/gdu/v5/cmd/gdu
Obviously this is nothing that you couldn’t already do with combination of
cd ;-) But it’s much simpler, faster and easier. I know, I know… bearded admins who dream in
bash will strongly disagree, but forgive me, I haven’t grown my beard yet ;-)
Have a great week with terminal!
Author Tomasz Waraksa
© Tomasz Waraksa, letsdebug.it
This article is not promoting any of the described products, services or vendors. We don't have any commercial interest nor associations with them. We're not trying to suggest that these products or services are best for you, nor promising that your experience will be the same.
In no event will we be liable for any loss or damage including without limitation, indirect or consequential loss or damage, or any loss or damage whatsoever arising from loss of data or profits arising out of, or in connection with, the use of this website and any information presented on it.
Through this website you are able to link to other websites which are not under our control. We have no control over the nature, content and availability of those sites. The inclusion of any links does not necessarily imply a recommendation or endorse the views expressed within them.
Permission is hereby granted, free of charge, to any person obtaining a copy of software published on this website and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions, unless stated explicitly otherwise:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
The software is provided “as is”, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.