Ncduは、ncursesに基づくディスク使用量アナライザーです。 TUI(テキストユーザーインターフェース)でディスク使用量の概要を提供し、大きなファイルやフォルダを見つけるのは非常に簡単です。 ncdu は、よく知られている「 du」の呪いに基づいたバージョンです。 Linuxの「」コマンド。ディスクスペースを使用しているディレクトリをすばやく確認する方法を提供します。
ncduをインストールするには 、最初に、以下に示すように、EPEL(Enterprises Linux用の追加パッケージ)リポジトリを有効にする必要があります。
EPELリポジトリを有効にする方法:
EL5の場合:
[root@openstack export]# rpm -Uvh http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
EL6の場合:
[root@openstack export]# rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
EL7の場合:
[root@openstack export]# rpm -Uvh http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
ncduのインストール方法
EPELリポジトリを有効にしたら、次のコマンドでncduをインストールできます。
注: 場合によっては、 ncursesがない場合 インストールされている場合は、「 yum install ncurses」を使用してインストールできます。 ‘。
[root@openstack export]# yum install ncdu
Loaded plugins: fastestmirror, presto
Setting up Install Process
::::::::
::::::::
Installing : ncdu-1.11-1.el6.x86_64 1/1
Verifying : ncdu-1.11-1.el6.x86_64 1/1
Installed: ncdu.x86_64 0:1.11-1.el6
Complete!
ncduの使用方法
以下のコマンドを実行して、現在の作業ディレクトリ(pwd)のディスク使用量を確認します。
[root@openstack ~]# ncdu
上記のコマンドは、ルートのホームディレクトリの下のディスク使用量を示しています。
特定のディレクトリのディスク使用量を確認するには、ディレクトリに移動してコマンド「ncdu」を発行します。 または、コマンド‘ncdu / lib /’を発行します
[root@openstack lib]# ncdu
または
[root@openstack ~]# ncdu /lib/
次の画像で、ディレクトリのスキャンと結果を確認できます。
完全なファイルシステムをスキャンする
[root@openstack ~]# ncdu -x /
キーボードショートカット
? for help 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) g Show percentage and/or graph i Show information about selected item r Recalculate the current directory q quit
RSAKeyFindコンパイル(作成)エラー:rsakeyfind.cpp –「memcmp、read、close」がこのスコープで宣言されていません[解決済み]
ClamAVを使用してLinuxボックスをスキャンし、トロイの木馬、マルウェア、ウイルスを検出する方法