PikoPong
  • Web Dev
  • Hack
  • Database
  • Big Data
  • AWS
  • Linux
No Result
View All Result
PikoPong
  • Web Dev
  • Hack
  • Database
  • Big Data
  • AWS
  • Linux
No Result
View All Result
PikoPong
No Result
View All Result
Home Linux

Use gdu for a Faster Disk Usage Checking in Linux Terminal

April 1, 2021
in Linux
283 9
Use gdu for a Faster Disk Usage Checking in Linux Terminal


There are two popular ways to check disk usage in Linux terminal: du command and df command. The du command is more for checking the space used by a directory and the df command gives you the disk utilization on filesystem level.

There are more friendly ways to see the disk usage in Linux with graphical tools like GNOME Disks. If you are confined to the terminal, you can use a TUI tool like ncdu to get the disk usage information with a sort of graphical touch.

Gdu: Disk usage checking in Linux terminal

Gdu is such a tool written in Go (hence the ‘g’ in gdu). Gdu developer has benchmark tests to show that it is quite fast for disk usage checking, specifically on SSDs. In fact, gdu is intended primarily for SSDs though it can work for HDD as well.

If you use the gdu command without any options, it shows the disk usage for the current directory you are in.

Since it has terminal user interface (TUI), you can navigate through directories and disk using arrows. You can also sort the result by file names or size.

Here’s how to do that:

Up arrow or k to move cursor upDown arrow or j to move cursor downEnter to select directory / deviceLeft arrow or h to go to parent directoryUse d to delete the selected file or directoryUse n to sort by nameUse s to sort by sizeUse c to sort by items

You’ll notice some symbols before some file entries. Those have specific meaning.

! means an error occurred while reading the directory.. means an error occurred while reading a subdirectory, size may not be [email protected] means file is a symlink or socket.H means the file was already counted (hard link).e means directory is empty.

To see the disk utilization and free space for all mounted disks, use the option d:

gdu -d

It shows all the details in one screen:

Sounds like a handy tool, right? Let’s see how to get it on your Linux system.

Installing gdu on Linux

Gdu is available for Arch and Manjaro users through the AUR. I presume that as an Arch user, you know how to use AUR.

It is included in the universe repository of the upcoming Ubuntu 21.04 but chances are that you are not using it at present. In that case, you may install it using Snap through it may seem like a lot of snap commands:

snap install gdu-disk-usage-analyzer
snap connect gdu-disk-usage-analyzer:mount-observe :mount-observe
snap connect gdu-disk-usage-analyzer:system-backup :system-backup
snap alias gdu-disk-usage-analyzer.gdu gdu

You may also find the source code on its release page:

I am more used to of using du and df commands but I can see some Linux users might like gdu. Are you one of them?

Like what you read? Please share it with others.



Source link

Share219Tweet137Share55Pin49

Related Posts

How to Delete Partitions in Linux [Using fdisk and GParted]
Linux

How to Delete Partitions in Linux [Using fdisk and GParted]

Managing partitions is serious business, especially when you have to remove them. I find myself doing this frequently, especially...

April 20, 2021
Blanket: Ambient Noise App With Variety of Sounds to Stay Focused
Linux

Blanket: Ambient Noise App With Variety of Sounds to Stay Focused

Brief: An open-source ambient noise player offering a variety of sounds to help you focus or fall asleep.With the...

April 19, 2021
How to Deploy Seafile Server with Docker
Linux

How to Deploy Seafile Server with Docker

First off, what is Seafile? Seafile is a self-hosted file synchronization program that works with the server-client model, as...

April 18, 2021
Systemd-Free Arch With Linux-libre Kernel
Linux

Systemd-Free Arch With Linux-libre Kernel

In the last month of 2019, the Hyperbola project took a major decision of ditching Linux in favor of...

April 17, 2021
Next Post
10 Best Linux Terminal Emulators With Extra Features [2021]

10 Best Linux Terminal Emulators With Extra Features [2021]

Meet Sleek: A Sleek Looking To-Do List Application

Meet Sleek: A Sleek Looking To-Do List Application

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recommended

How To Build An Accessible Front-End Application With Chakra UI And Nuxt.js — Smashing Magazine

How To Build An Accessible Front-End Application With Chakra UI And Nuxt.js — Smashing Magazine

July 20, 2020
Customizing Stubs in Laravel | Laravel News

Customizing Stubs in Laravel | Laravel News

April 9, 2021
A Customizable Linux Terminal for Power Users

A Customizable Linux Terminal for Power Users

March 2, 2021
Learn about Dynamic Static Typing and the new Flysystem at this months Worldwide Laravel Meetup

The March Laravel Worldwide Meetup is today

March 23, 2021

Categories

  • AWS
  • Big Data
  • Database
  • DevOps
  • IoT
  • Linux
  • Web Dev
No Result
View All Result
  • Web Dev
  • Hack
  • Database
  • Big Data
  • AWS
  • Linux

Welcome Back!

Login to your account below

Forgotten Password?

Create New Account!

Fill the forms bellow to register

All fields are required. Log In

Retrieve your password

Please enter your username or email address to reset your password.

Log In