Gdu – A Fairly Quick Disk Utilization Analyzer for Linux

0

Get real time updates directly on you device, subscribe now.

On this article, we are going to check out gdu an open-source disk utilization analyzer written in go. Gdu is impressed by godu, dua, ncdu, and df.

The gdu device is created for SSD drives the place parallel processing will be utilized. This device may work with HDD with much less efficiency in comparison with SSD drives. You can too test benchmark outcomes. There are a lot of different comparable instruments and it’s a must to play with gdu first to see if fulfill your wants.

How you can Set up Gdu – Linux Disk Utilization Analyzer

There are few other ways to put in gdu in numerous Linux flavors however I’m going to stay with a standard manner that may be adopted no matter what distribution you’re operating with.

Go to the gdu GitHub launch web page to obtain the archive file. The newest model is V4.9.1 and I recommend downloading the most recent model.

$ curl -L https://github.com/dundee/gdu/releases/newest/obtain/gdu_linux_amd64.tgz | tar xz
$ chmod +x gdu_linux_amd64
$ sudo mv gdu_linux_amd64 /usr/bin/gdu

Now you possibly can confirm the set up by operating the next command.

$ gdu –version

Model: v4.9.1
Constructed time: Sat Mar 27 09:47:28 PM CET 2021
Constructed person: dundee

A very good observe earlier than taking part in with any new instruments is to test the assistance choices.

$ gdu –help

Gdu Help OptionsGdu Assist Choices

When you run the gdu command with out passing any argument it can scan your present working listing. I’m in my residence listing now and once I run gdu, you possibly can see from the beneath picture my residence listing is scanned.

$ gdu

Check Disk Usage of Home DirectroyExamine Disk Utilization of Residence Directroy

To scan for any explicit directories it’s a must to cross the listing identify as an argument.

$ gdu /residence/tecmint/bash

Check Disk Usage of DirectroyExamine Disk Utilization of Directroy

You can’t cross multiple argument.

$ gdu /residence /var

There are few operations you possibly can carry out with the gdu command. Press ? to entry assist.

Gdu Help and UsageGdu Assist and Utilization

From the assistance you possibly can see, there are alternatives to type, scan and transfer throughout directories. Entry assist and take a look at exploring all of the choices to get snug.

You may delete a file or listing by urgent the “d” key. It can immediate you for affirmation.

Delete File or DirectoryDelete File or Listing

You can too view the content material of any file by urgent the “v” key. To return out of the file press the escape key.

View File ContentView File Content material

You may ignore sure directories from the output by including listing names as an argument to the -i flag. A number of directories will also be handed to the -i flag and every listing needs to be separated by commas.

$ gdu /residence/karthick/ -i /residence/karthick/.ssh,/residence/karthick/sqlite

You may even see particular characters within the recordsdata and directories and every has a particular that means. From the beneath instance you possibly can see the “/community” listing is empty so the character “e” is prefixed to indicate that.

[ ! ] ⇒ Error whereas studying listing
[ . ] ⇒ Error whereas studying subdirectory.
[ @ ] ⇒ File is socket or simlink.
[ H ] ⇒ Hardlink which is already counted.
[ e ] ⇒ Empty listing.

Special Characters FilesParticular Characters Recordsdata

When you like black and white output, you need to use “-c” flag. See the beneath picture the place the output is printed in black and white.

$ gdu -c /and so forth/systemd

Black and White OutputBlack and White Output

All of the instructions until now will launch an interactive mode to indicate disk stats. If you’d like the output in non-interactive mode use the “-n” flag.

$ gdu -n ~

Non Interactive OutputNon Interactive Output

That’s it for this text. Play with gdu and tell us the way it fits your wants in comparison with different disk utilization instruments.

If You Admire What We Do Right here On TecMint, You Ought to Contemplate:

TecMint is the quickest rising and most trusted group website for any form of Linux Articles, Guides and Books on the internet. Hundreds of thousands of individuals go to TecMint! to look or browse the 1000’s of revealed articles out there FREELY to all.

When you like what you’re studying, please contemplate shopping for us a espresso ( or 2 ) as a token of appreciation.

Support Us

We’re grateful in your by no means ending assist.

Leave A Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More