4 "user id(s) to take into account"
5 string typestr="uid_spec"
8 An uid specifier may be a single number, or a range of uids.
11 --uid 42 # only consider uid 42
12 --uid 42- # only consider uids greater or equal than 42
13 --uid 23-42 # only consider uids between 23 and 42, inclusively.
14 --uid 23-42,666-777,88 # consider uids 23-42, 666-777 and 88.
24 Only print num lines of output. If negative (the default),
30 "supress descriptions for listings/tables"
33 This is mostly useful to feed the output of adu to scripts.
38 "how to sort the output"
40 values="sizes","files","unsorted"
44 Sort by file size, file count or unsorted.
49 "file to write output to"
50 string typestr="<path>"
54 If empty, or not given, use stdout.
59 "select output format for sizes"
61 values="h","b","k","m","g","t"
65 Print sizes in the given unit: human-readable, bytes,
66 kilobytes (2^10), megabytes (2^20), gigabytes (2^30), terabytes
67 (2^40). The default is \"h\", i.e. human-readable.
72 "select output format for counted values"
74 values="h","n","k","m","g","t"
78 Print the number of files/directories in the given unit:
79 human-readable, number, number/10^3, number/10^6, number/10^12,
80 number/10^15. The default is to print numbers in human-readable
85 option "user-summary-sort" -
86 #~~~~~~~~~~~~~~~~~~~~~~~~~~~
87 "how to sort the user-summary"
88 enum typestr="col_spec"
89 values="name","uid","dir_count","file_count","size"
93 It is enough to specify the first letter of the column specifier,
94 e.g. \"--user-summary-sort f\" sorts by file count.
97 option "no-user-summary" -
98 #~~~~~~~~~~~~~~~~~~~~~~~~~~~
99 "do not print the user summary table"
105 "how to print per-user directory listings"
107 values="size","file_count","both","none"
111 Similar to the global directory listings mentioned above,
112 adu can print two directory listings per user. This option
113 controls which of the these should be printed.
115 option "no-global-summary" -
116 #~~~~~~~~~~~~~~~~~~~~~~~~~~~
117 "do not print the summary line"
120 option "global-list" -
121 #~~~~~~~~~~~~~~~~~~~~~
122 "how to print global directory listings"
124 values="size","file_count","both","none"
128 By default adu prints two global directory listings: The
129 first prints the directory names ordered by the sum of the
130 sizes of the contained files while the second listing prints
131 them sorted by the number of files. This option can be used
132 to print only one or neither of these two listings.
134 option "print-base-dir" -
135 #~~~~~~~~~~~~~~~~~~~~~~~~
136 "whether to include the base-dir in the output"
139 If this flag is given, all directories printed are prefixed
140 with the base directory. The default is to print paths relative
144 ########################
145 section "Format strings"
146 ########################
148 option "global-summary-format" -
149 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
150 "How to format the global summary"
151 string typestr="<format>"
152 default="#directories: %(dirs), #files: %(files), size: %(size)\n\n"
154 dirs: The number of directories
155 files: The number of files
156 size: Total size of all files
160 option "user-summary-format" -
161 #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
162 "How to format the user summary"
163 string typestr="<format>"
164 default="%(pw_name:l:16) %(uid:r:5) %(dirs:r:5) %(files:r:5) %(size:r:5)\n"
166 pw_name: The user name
168 dirs: The number of directories
169 files: The number of files
170 size: Total size of all files