How to install duf on Debian/Ubuntu
duf means Disk Usage/Free utility. It works on Linux and Unix-like systems, including Windows. It comes with the following features:
- Easy to use
- Colorful display
- Adjust height and width as per your terminal resize movement
- Sorting data as per our need
- Filters and groups
- JSON outputs and more
Installing duf
Make sure you have a working Go environment, including a Golang compiler installed for source code installation. Open the terminal app and then use the git command:
$ git clone https://github.com/muesli/duf.git
$ cd duf
$ go build
How to install duf on Debian/Ubuntu Linux (pre built packages)
Use the wget command or curl command to download file:
$ wget https://github.com/muesli/duf/releases/download/v0.8.1/checksums.txt
$ wget https://github.com/muesli/duf/releases/download/v0.8.1/duf_0.8.1_linux_amd64.deb
$ sha256sum --ignore-missing -c checksums.txt
Checksum confirmation:
duf_0.8.1_linux_amd64.deb: OK
Install .deb Packages on your Debian or Ubuntu box:
$ sudo apt install ./duf_0.8.1_linux_amd64.deb
Example:
Reading package lists... Done Building dependency tree Reading state information... Done Note, selecting 'duf' instead of './duf_0.8.1_linux_amd64.deb' The following NEW packages will be installed: duf 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0 B/1031 kB of archives. After this operation, 2486 kB of additional disk space will be used. Get:1 /tmp/duf_0.8.1_linux_amd64.deb duf amd64 0.8.1 [1031 kB] debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package duf. (Reading database ... 15411 files and directories currently installed.) Preparing to unpack /tmp/duf_0.8.1_linux_amd64.deb ... Unpacking duf (0.8.1) ... Setting up duf (0.8.1) ...