du の代替ツール durt の紹介

はじめに

この資料は Rust 製のコマンドラインツール durt について紹介するものです。
Rust製の環境構築やツールのインストール方法については以下を参照してください

durtについて

ファイルやディレクトリのサイズを計算する du の代替ツールです。

使用方法

使用方法は

durt -st src/*
     626  B  src/mac
     740  B  src/dbs
     741  B  src/main.rs
     800  B  src/env
    1.68 kB  src/cnf
    1.86 kB  src/err
    4.16 kB  src/rpc
   23.73 kB  src/cli
   28.70 kB  src/iam
   61.40 kB  src/net
  ---------
  124.45 kB  (total)

ドキュメント

  • durt のヘルプメッセージ

% durt --help
durt 1.0.3

Cauê Baasch de Souza <cauebs@pm.me>

Command line tool for calculating the size of files and directories

USAGE:
    durt [OPTIONS] [PATHS]...

ARGS:
    <PATHS>...    Paths to files or directories. Use wildcards for recursion

OPTIONS:
    -b, --binary                      Use binary prefixes (Ki, Mi, Gi, etc.) instead of decimal
    -P, --percentage                  Show each entry's percentage relative to the total
    -m, --min <MINIMUM_PERCENTAGE>    Omit entries with size less than this
    -t, --total                       Print the sum of all sizes at the end
    -s, --sort                        Print entries in ascending order of size
    -p, --by-path                     Sort by path instead of by size
    -r, --reverse                     Reverse the order of the entries
    -f, --same-fs                     Ignore entries from filesystems different from that of the
                                      first path passed
    -h, --help                        Print help information
    -V, --version                     Print version information

ライセンス

この記事が気に入ったらサポートをしてみませんか?