MCPcopy Create free account
hub / github.com/coreutils/coreutils / usage

Function usage

src/du.c:272–420  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270ARGMATCH_VERIFY (time_style_args, time_style_types);
271
272void
273usage (int status)
274{
275 if (status != EXIT_SUCCESS)
276 emit_try_help ();
277 else
278 {
279 printf (_("\
280Usage: %s [OPTION]... [FILE]...\n\
281 or: %s [OPTION]... --files0-from=F\n\
282"), program_name, program_name);
283 fputs (_("\
284Summarize device usage of the set of FILEs, recursively for directories.\n\
285"), stdout);
286
287 emit_mandatory_arg_note ();
288
289 oputs (_("\
290 -0, --null\n\
291 end each output line with NUL, not newline\n\
292"));
293 oputs (_("\
294 -a, --all\n\
295 write counts for all files, not just directories\n\
296"));
297 oputs (_("\
298 -A, --apparent-size\n\
299 print apparent sizes rather than device usage;\n\
300 although the apparent size is usually smaller, it may be\n\
301 larger due to holes in ('sparse') files,\n\
302 internal fragmentation, indirect blocks, etc.\n\
303"));
304 oputs (_("\
305 -B, --block-size=SIZE\n\
306 scale sizes by SIZE before printing them; See SIZE format below;\n\
307 E.g., '-BM' prints sizes in units of 1,048,576 bytes\n\
308"));
309 oputs (_("\
310 -b, --bytes\n\
311 equivalent to '--apparent-size --block-size=1'\n\
312"));
313 oputs (_("\
314 -c, --total\n\
315 produce a grand total\n\
316"));
317 oputs (_("\
318 -D, --dereference-args\n\
319 dereference only symlinks that are listed on the command line\n\
320"));
321 oputs (_("\
322 -d, --max-depth=N\n\
323 print the total for a directory (or file, with --all)\n\
324 only if it is N or fewer levels below the command\n\
325 line argument; --max-depth=0 is the same as --summarize\n\
326"));
327 oputs (_("\
328 --files0-from=F\n\
329 summarize device usage of the NUL-terminated file names\n\

Callers 1

mainFunction · 0.70

Calls 4

emit_mandatory_arg_noteFunction · 0.85
emit_blocksize_noteFunction · 0.85
emit_size_noteFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected