1- .ie \n( .g .ds Aq \(aq
2- .el .ds Aq '
3- .TH pdu 1 "pdu 0.21.1"
1+ .TH pdu 1 "pdu 0.21.1"
42.SH NAME
53pdu \- Summarize disk usage of the set of files, recursively for directories.
64.SH SYNOPSIS
7- \fB pdu \fR [\fB \-\- json \- input \fR ] [\fB \-\- json \- output \fR ] [\fB \- b \fR |\fB \-\- bytes \- format \fR ] [\fB \- H \fR |\fB \-\- deduplicate \- hardlinks \fR ] [\fB \- x \fR |\fB \-\- one \- file \- system \fR ] [\fB \-\- top \- down \fR ] [\fB \-\- align \- right \fR ] [\fB \- q \fR |\fB \-\- quantity \fR ] [\fB \- d \fR |\fB \-\- max \- depth \fR ] [\fB \- w \fR |\fB \-\- total \- width \fR ] [\fB \-\- column \- width \fR ] [\fB \- m \fR |\fB \-\- min \- ratio \fR ] [\fB \-\- no \- sort \fR ] [\fB \- s \fR |\fB \-\- silent \- errors \fR ] [\fB \- p \fR |\fB \-\- progress \fR ] [\fB \-\- threads \fR ] [\fB \-\- omit \- json \- shared \- details \fR ] [\fB \-\- omit \- json \- shared \- summary \fR ] [\fB \- h \fR | \fB \-\- help \fR ] [ \fB \- V \fR | \fB \-\- version \fR ] [ \ fIFILES \fR ]
5+ \fB pdu \fR [\fB \-\- json \- input \fR ] [\fB \-\- json \- output \fR ] [\fB \- b \fR |\fB \-\- bytes \- format \fR \fI BYTES_FORMAT \fR ] [\fB \- H \fR |\fB \-\- deduplicate \- hardlinks \fR ] [\fB \- x \fR |\fB \-\- one \- file \- system \fR ] [\fB \-\- top \- down \fR ] [\fB \-\- align \- right \fR ] [\fB \- q \fR |\fB \-\- quantity \fR \fI QUANTITY \fR ] [\fB \- d \fR |\fB \-\- max \- depth \fR \fI MAX_DEPTH \fR ] [\fB \- w \fR |\fB \-\- total \- width \fR \fI TOTAL_WIDTH \fR ] [\fB \-\- column \- width \fR \fI TREE_WIDTH \fR \fI BAR_WIDTH \fR ] [\fB \- m \fR |\fB \-\- min \- ratio \fR \fI MIN_RATIO \fR ] [\fB \-\- no \- sort \fR ] [\fB \- s \fR |\fB \-\- silent \- errors \fR ] [\fB \- p \fR |\fB \-\- progress \fR ] [\fB \-\- threads \fR \fI THREADS \fR ] [\fB \-\- omit \- json \- shared \- details \fR ] [\fB \-\- omit \- json \- shared \- summary \fR ] [\fI FILES \fR ]
86.SH DESCRIPTION
97Summarize disk usage of the set of files, recursively for directories.
108.PP
119Copyright: Apache\- 2.0 © 2021 Hoàng Văn Khải <https://github.com/KSXGitHub/>
10+ .br
1211Sponsor: https://github.com/sponsors/KSXGitHub
1312.SH OPTIONS
1413.TP
14+ [\fI FILES \fR ]
15+ List of files and/or directories
16+ .TP
1517\fB \-\- json \- input \fR
1618Read JSON data from stdin
1719.TP
@@ -33,7 +35,7 @@ metric: Use metric scale, i.e. 1K = 1000B, 1M = 1000K, and so on
3335binary: Use binary scale, i.e. 1K = 1024B, 1M = 1024K, and so on
3436.RE
3537.TP
36- \fB \- H \fR , \fB \-\- deduplicate \- hardlinks \fR
38+ \fB \- H \fR , \fB \-\- deduplicate \- hardlinks \fR , \fB \-\- detect \- links \fR , \fB \-\- dedupe \- links \fR
3739Detect and subtract the sizes of hardlinks from their parent directory totals
3840.TP
3941\fB \- x \fR , \fB \-\- one \- file \- system \fR
@@ -45,7 +47,7 @@ Print the tree top\-down instead of bottom\-up
4547\fB \-\- align \- right \fR
4648Set the root of the bars to the right
4749.TP
48- \fB \- q \fR , \fB \-\- quantity \fR \fI <QUANTITY> \fR [default: block\ - size]
50+ \fB \- q \fR , \fB \-\- quantity \fR \fI <QUANTITY> \fR [default: block-size]
4951Aspect of the files/directories to be measured
5052.br
5153
@@ -60,10 +62,10 @@ block\-size: Measure block sizes (block\-count * 512B)
6062block\- count: Count numbers of blocks
6163.RE
6264.TP
63- \fB \- d \fR , \fB \-\- max \- depth \fR \fI <MAX_DEPTH> \fR [default: 10]
65+ \fB \- d \fR , \fB \-\- max \- depth \fR , \fB \-\- depth \fR \fI <MAX_DEPTH> \fR [default: 10]
6466Maximum depth to display the data. Could be either "inf" or a positive integer
6567.TP
66- \fB \- w \fR , \fB \-\- total \- width \fR \fI <TOTAL_WIDTH> \fR
68+ \fB \- w \fR , \fB \-\- total \- width \fR , \fB \-\- width \fR \fI <TOTAL_WIDTH> \fR
6769Width of the visualization
6870.TP
6971\fB \-\- column \- width \fR \fI <TREE_WIDTH> \fR\fI \fR\fI <BAR_WIDTH> \fR
@@ -75,7 +77,7 @@ Minimal size proportion required to appear
7577\fB \-\- no \- sort \fR
7678Do not sort the branches in the tree
7779.TP
78- \fB \- s \fR , \fB \-\- silent \- errors \fR
80+ \fB \- s \fR , \fB \-\- silent \- errors \fR , \fB \-\- no \- errors \fR
7981Prevent filesystem error messages from appearing in stderr
8082.TP
8183\fB \- p \fR , \fB \-\- progress \fR
@@ -89,47 +91,61 @@ Do not output `.shared.details` in the JSON output
8991.TP
9092\fB \-\- omit \- json \- shared \- summary \fR
9193Do not output `.shared.summary` in the JSON output
92- .TP
93- \fB \- h \fR , \fB \-\- help \fR
94- Print help (see a summary with \*( Aq \- h\*( Aq )
95- .TP
96- \fB \- V \fR , \fB \-\- version \fR
97- Print version
98- .TP
99- [\fI FILES \fR ]
100- List of files and/or directories
10194.SH EXAMPLES
95+ .TP
10296Show disk usage chart of current working directory
103- $ pdu
104-
97+ .nf
98+ \fB $ pdu \fR
99+ .fi
100+ .TP
105101Show disk usage chart of a single file or directory
106- $ pdu path/to/file/or/directory
107-
102+ .nf
103+ \fB $ pdu path/to/file/or/directory \fR
104+ .fi
105+ .TP
108106Compare disk usages of multiple files and/or directories
109- $ pdu file.txt dir/
110-
107+ .nf
108+ \fB $ pdu file.txt dir/ \fR
109+ .fi
110+ .TP
111111Show chart in apparent sizes instead of block sizes
112- $ pdu \-\- quantity=apparent\- size
113-
112+ .nf
113+ \fB $ pdu \-\- quantity=apparent \- size \fR
114+ .fi
115+ .TP
114116Detect and subtract the sizes of hardlinks from their parent nodes
115- $ pdu \-\- deduplicate\- hardlinks
116-
117+ .nf
118+ \fB $ pdu \-\- deduplicate \- hardlinks \fR
119+ .fi
120+ .TP
117121Show sizes in plain numbers instead of metric units
118- $ pdu \-\- bytes\- format=plain
119-
122+ .nf
123+ \fB $ pdu \-\- bytes \- format=plain \fR
124+ .fi
125+ .TP
120126Show sizes in base 2¹⁰ units (binary) instead of base 10³ units (metric)
121- $ pdu \-\- bytes\- format=binary
122-
127+ .nf
128+ \fB $ pdu \-\- bytes \- format=binary \fR
129+ .fi
130+ .TP
123131Show disk usage chart of all entries regardless of size
124- $ pdu \-\- min\- ratio=0
125-
132+ .nf
133+ \fB $ pdu \-\- min \- ratio=0 \fR
134+ .fi
135+ .TP
126136Only show disk usage chart of entries whose size is at least 5% of total
127- $ pdu \-\- min\- ratio=0.05
128-
137+ .nf
138+ \fB $ pdu \-\- min \- ratio=0.05 \fR
139+ .fi
140+ .TP
129141Show disk usage data as JSON instead of chart
130- $ pdu \-\- min\- ratio=0 \-\- max\- depth=inf \-\- json\- output | jq
131-
142+ .nf
143+ \fB $ pdu \-\- min \- ratio=0 \-\- max \- depth=inf \-\- json \- output | jq \fR
144+ .fi
145+ .TP
132146Visualize existing JSON representation of disk usage data
133- $ pdu \-\- json\- input < disk\- usage.json
147+ .nf
148+ \fB $ pdu \-\- json \- input < disk \- usage.json \fR
149+ .fi
134150.SH VERSION
135151v0.21.1
0 commit comments