Ncdu powerful disk View command

Brief introduction

Project Address: https://dev.yorhel.nl/ncdu

Ncdu (ncurses Disk Usage) based on Ncurses is a library of du command interface. It is well-known by the du command, to provide users with a quick and easy to use interface. It can show the percentage of disk usage, and allows you to use ncurses library navigation between directories.

 

installation

# wget https://dev.yorhel.nl/download/ncdu-1.14.1.tar.gz
# cd ncdu-1.14.1
#  ./configure -prefix=/usr/local
# make
# make install

 

Installation Problem Solving

1、config时报错
configure: error: required header file not found

# yum -y install ncurses ncurses-devel

2, make an error

make: *** No targets specified and no makefile found.  Stop.

#yum install gcc gcc-c++ autoconf automake -y

 

use

1, a terminal can be used directly ncdu

Open will have a scan, the scan size is your current directory, and the directory will automatically descending order

2, the root directory can be viewed

Example: ncdu / home

3, shortcuts

  • ? - Displays help screen
  • up, down j, k - move the cursor up
  • right, enter, l - opens the selected directory
  • left, <, h - return to the parent directory
  • n - (then click the reverse chronological order) to sort by file name
  • s - (in reverse chronological order and click) sorted by file size
  • C - (then click the reverse chronological order) in accordance with the number priority projects
  • a - switching disk usage indicator
  • d - delete the selected file or directory
  • For more information on the display options - i
  • r - refresh / re-calculate the current directory
  • b - Open a shell in the current directory

Finally, enter q to quit

 

Guess you like

Origin www.cnblogs.com/-abm/p/11496246.html