• Contact
  • Contact Us
  • Disclamer
  • Home 1
  • Home 2
  • Home 3
  • Privacy Policy
Tuesday, May 13, 2025
How VPS - How to use/setup VPS
  • Login
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon
No Result
View All Result
How VPS - How to use/setup VPS
No Result
View All Result
Home Operating System Linux

Ncdu a NCurses Based Disk Usage Analyzer and Tracker

How VPS by How VPS
November 2, 2018
in Linux, Operating System
1
0
SHARES
210
VIEWS
Share on FacebookShare on Twitter

Contents

  1. Installing ncdu (NCurses Disk Usage)
  2. How Do I Use ncdu
    1. Scanning
    2. Tree View With Sizes
    3. Directory Information
    4. Delete Confirmation
    5. ncdup Help Window

ncdu (NCurses Disk Usage) is a command line version of the most popular “du command“. It is based on ncurses and provides a fastest way to analyse and track what files and directories are using your disk space in Linux. It provides an excellent ncurses based interface to display the information in more intuitive way like columns for how much disk space used in megabytes, gigabytes and graphical bar usage, file/directory names, file deletion, refresh, etc. ncdu aims to be simple, fast and easy to use program and runs on any minimal Linux/Unix based system with ncurses installed.

Ncdu a NCurses Based Disk Usage Analyzer and Tracker

Install NCDU Tool

This article explains you through the process of installing and using NCDU program on a Linux system.

Installing ncdu (NCurses Disk Usage)

The “ncdu” package is not available under RHEL, CentOS, Fedora, Scientific Linux distributions, you must have epel repository enabled on your system to install it using yum command.

# yum install ncdu

The “ncdu” utility is available on Ubuntu, Linux Mint and Debian from the package manager system, use the following apt-get command to install it.

$ sudo apt-get install ncdu

How Do I Use ncdu

Simply, run the “ncdu” command from the terminal. Once you run, it will start scanning for number of files and directories and disk usage of current working directory.

# ncdu
Scanning
Ncdu a NCurses Based Disk Usage Analyzer and Tracker

NCDU Scanning

Tree View With Sizes

Once, scanning completes, it will present the tree structure of files and folders along with their disk usage in human readable format with graphical bar presentation.

Ncdu a NCurses Based Disk Usage Analyzer and Tracker

NCDU Disk Usage Tree View

Directory Information

Press “i” to see the selected directory information like full path, disk usage, apparent size. Again, hit “i” to hide the window.

Ncdu a NCurses Based Disk Usage Analyzer and Tracker

NCDU Directory Information

Delete Confirmation

Press “-d” to delete selected file or directory, before deleting it will prompt you for confirmation. Press “Yes” or “No“.

Ncdu a NCurses Based Disk Usage Analyzer and Tracker

NCDU Delete Confirmation

ncdup Help Window

Press “Shift+?” to see help window with ncdu available options. You can use arrow keys to move up and down for more options.

Ncdu a NCurses Based Disk Usage Analyzer and Tracker

NCDU Help Screen

Use “q” to quit interface. Here are list of available options for ncdu, you can check them.

 ┌───ncdu help─────────────────1:Keys───2:Format───3:About─────┐
 │         						       │
 │   up, 	k  Move cursor up                              │
 │   down, 	j  Move cursor down                            │
 │   right/enter   Open selected directory                     │
 │   left, <, 	h  Open parent directory                       │
 │   	      	n  Sort by name (ascending/descending)         │
 │   		s  Sort by size (ascending/descending)         │
 │ 		d  Delete selected file or directory           │
 │  		t  Toggle dirs before files when sorting       │
 │  		g  Show percentage and/or graph                │
 │ 		a  Toggle between apparent size and disk usage │
 │		e  Show/hide hidden or excluded files          │
 │           	i  Show information about selected item        │
 │           	r  Recalculate the current directory           │
 │           	q  Quit ncdu                                   │
 │          	                                               │
 │                                     Press q to continue     │
 └─────────────────────────────────────────────────────────────┘

Source: tecmint.com

Tags: Linux Commandslinux guidelinux vps setup guide
Previous Post

How to Run Shell Scripts with Sudo Command in Linux

Next Post

A Command Line Web Browsing with Lynx and Links Tools

Next Post

A Command Line Web Browsing with Lynx and Links Tools

Comments 1

  1. Marlyn Murra says:
    5 years ago

    Informative article, just what I was looking for.

    Reply

Leave a Reply Cancel reply

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

No Result
View All Result

Recent Post

Install Imagemagick on CentOS
CentOS

Install Imagemagick on CentOS

by How VPS
June 28, 2023
1

This is how I installed Imagemagick on a vanilla CentOS server Start off by installing the prerequisites yum install php-pear...

Read more
how to Check phpinfo

How to Check phpinfo of Hosting or VPS?

June 28, 2023
Failed to download metadata for repo 'appstream' on Centos 8

How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

February 25, 2022
How to Fix MySQL Error "Plugin 'InnoDB' registration as a STORAGE ENGINE failed"?

How to Fix MySQL Error “Plugin ‘InnoDB’ registration as a STORAGE ENGINE failed”?

November 17, 2020
How to optimize Mysql or MariaDB

How to optimize Mysql or MariaDB

November 3, 2020

Recent News

  • Install Imagemagick on CentOS
  • How to Check phpinfo of Hosting or VPS?
  • How to fix error: Failed to download metadata for repo ‘appstream’ on Centos 8

Category

  • Arch
  • Authentication
  • Backups
  • BSD
  • Centmin Mod
  • CentOS
  • Control Panels
  • CoreOS
  • CWP
  • Debian
  • Directadmin
  • Encryption
  • Fedora
  • Firewalls
  • Hocvps Script
  • Hosting providers
  • Kloxo-MR
  • Linux
  • Mitigations
  • Operating System
  • Plesk
  • Reviews
  • Securing VPS/Servers
  • Security Patches
  • SSL Certificates
  • Uncategorized
  • Upgrading
  • VPS/Servers management guides
  • Vulnerability Detection
  • Web servers software
  • Webhosting Control Panel
  • About
  • Advertise
  • Careers
  • Contact

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Management guides
    • Web servers software
      • Directadmin
      • Hocvps Script
      • Centmin Mod
      • CWP
      • Kloxo-MR
      • Plesk
    • Control Panels
    • Securing VPS/Servers
      • SSL Certificates
      • Upgrading
      • Authentication
  • Operating System
    • CentOS
    • Fedora
    • Debian
    • Linux
    • Arch
    • BSD
    • CoreOS
  • Reviews
  • Coupon
    • Domain Coupon
    • Hosting Coupon

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

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

Log In
Thabet