Raspberry Pi

How to Analyze Disk Space Usage on Raspberry Pi Using Gdu

The gdu is a command-line utility that allows Linux users to view the disk space information of their systems. The gdu command is similar to the most commonly used ncdu command; however, it has a relatively quick response time in providing you with the disk information on your system terminal.

Further, it outputs the result in multiple colors to clearly visualize the disk usage information. Since it is compatible with ARM-based architecture, you can also use it on your Raspberry Pi device.

This article is a detailed guideline to analyze the disk space usage on your Raspberry Pi device by installing the gdu command-line utility.

Analyze Disk Space Usage on Raspberry Pi Using gdu

You can easily install gdu on your Raspberry Pi by carefully following the below-mentioned steps:

Step 1: Download gdu Arm Linux File on Raspberry Pi

Since Raspberry is an ARM-based system, you will need to download the ARM version of gdu from the GitHub website through the following command:

$ sudo wget https://github.com/dundee/gdu/releases/download/v5.14.0/gdu_linux_arm.tgz

Step 2: Extract gdu .tgz File on Raspberry Pi

The above will download the gdu .tgz file and you have to extract it using the following command:

$ tar xf gdu_linux_arm.tgz

Step 3: Move the gdu File to /usr/local/bin Location

Next, you will need to move the file “gdu_linux_arm” to the location “/usr/local/bin” using the following command so that you can execute the file without any error.

$ sudo mv gdu_linux_arm /usr/local/bin/gdu

Step 4: Give All Permissions to gdu File

Once the above move is made, you will need to execute the following command to give all the permission to execute the gdu file.

$ sudo chmod a+x /usr/local/bin/gdu

Step 5: Check gdu Version on Raspberry Pi

To confirm the successful installation of the latest version of gdu, you can apply the following command:

$ gdu --version

Step 6: Run gdu on Raspberry Pi

To run gdu on Raspberry Pi, you can execute the following command:

$ gdu

Remove gdu from Raspberry Pi

If you no longer want to use gdu on your Raspberry Pi, you will need to remove the gdu file from the bin directory using the following command:

$ sudo rm -rf /usr/local/bin/gdu


gdu is a command-line application for analyzing the disk space usage on your Raspberry Pi device. You can install this application by downloading the arm linux .tz file from the GitHub website. After successfully downloading the file, you must need to extract it through the “tar xf” command and move the “gdu_linux_arm” file to the Raspberry Pi bin directory to complete the installation.

About the author

Awais Khan

I'm an Engineer and an academic researcher by profession. My interest for Raspberry Pi, embedded systems and blogging has brought me here to share my knowledge with others.