インストール手順
1. Rust言語のインストール※curlをインストールしていない場合は、あらかじめ「sudo apt-get -y install curl」でインストールしておきます。
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
※以下の様な選択肢が表示されたら1を入力します1) Proceed with installation (default)
2) Customize installation
3) Cancel installation
インストールしたシェルですぐにRustを使用するために、以下のコマンドを実行します。source $HOME/.cargo/env
2. dustコマンドのインストール
cargo install du-dust
3. dustコマンドの実行
以下のコマンドを実行して、フォルダ毎の容量を表示する事ができます。
dust
〇dustコマンドの実行例(Debian 10)

〇dustコマンドの実行例(Ubuntu 20.04)

〇dustコマンドの実行例(Raspberry Pi - Raspbian Buster)

トラブルシューティング
以下のエラーが発生した場合は、error: linker `cc` not found
以下のコマンドを実行してgccをインストールします。sudo apt-get -y install gcc
関連情報
・dustコマンドのgithubリポジトリhttps://github.com/bootandy/dust
0 件のコメント:
コメントを投稿