option "uid" u #~~~~~~~~~~~~~ "user id(s) to take into account" string typestr="uid_spec" optional details=" An uid specifier may be a single number, or a range of uids. Example: --uid 42 # only consider uid 42 --uid 42- # only consider uids greater or equal than 42 --uid 23-42 # only consider uids between 23 and 42, inclusively. --uid 23-42,666-777,88 # consider uids 23-42, 666-777 and 88. " option "limit" L #~~~~~~~~~~~~~~~ "Limit output" int typestr="num" default="-1" optional details=" Only print num lines of output. If negative (the default), print all lines. " option "no-headers" - #~~~~~~~~~~~~~~~~~~~~ "supress descriptions for listings/summaries" flag off details=" This is mostly useful to feed the output of adu to scripts. " option "select-mode" m #~~~~~~~~~~~~~~~~~~~~~ "How to print the results of the query" enum typestr="" values="global_list","global_summary","user_list","user_summary" default="global_list" optional details=" global_list: List of directories, regardless of owner. global_summary: Only print totals. user_list: Print a list for each admissible uid. user_summary Print totals for each admissible uid. " option "list-sort" s #~~~~~~~~~~~~~~~~~~~ "how to sort the user list or the global list" enum typestr="" values="size","file_count" default="size" optional details=" This option is ignored if select-mode is neither \"user_list\", nor \"global_list\". " option "output" o #~~~~~~~~~~~~~~~~ "file to write output to" string typestr="" optional default="-" details=" If empty, or not given, use stdout. " option "user-summary-sort" - #~~~~~~~~~~~~~~~~~~~~~~~~~~~ "how to sort the user-summary" enum typestr="col_spec" values="name","uid","dir_count","file_count","size" default="size" optional details=" It is enough to specify the first letter of the column specifier, e.g. \"--user-summary-sort f\" sorts by file count. " option "print-base-dir" - #~~~~~~~~~~~~~~~~~~~~~~~~ "whether to include the base-dir in the output" flag off details=" If this flag is given, all directories printed are prefixed with the base directory. The default is to print paths relative to the base dir. " ######################## section "Format strings" ######################## option "global-list-format" - #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "How to format the global list" string typestr="" default="%(size:r:8) %(files:r:8) %(dirname)\n" details=" size: Total size of all files files: The number of files dirname: The name of the directory " optional option "global-summary-format" - #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "How to format the global summary" string typestr="" default="#directories: %(dirs), #files: %(files), size: %(size)\n\n" details=" dirs: The number of directories files: The number of files size: Total size of all files " optional option "user-list-format" - #~~~~~~~~~~~~~~~~~~~~~~~~~~ "How to format the user list" string typestr="" default="%(size:r:5) %(files:r:5) %(dirname)\n" details=" pw_name: The user name uid: The user id files: The number of files size: size of all files in that directory dirname: The name of the directory " optional option "user-summary-format" - #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "How to format the user summary" string typestr="" default="%(pw_name:l:16) %(uid:r:5) %(dirs:r:5) %(files:r:5) %(size:r:5)\n" details=" pw_name: The user name uid: The user id dirs: The number of directories files: The number of files size: Total size of all files " optional