インストール手順
1. Rust言語のインストール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コマンドの実行例(CentOS 8)

〇dustコマンドの実行例(CentOS 8-Stream)

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