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

Function usage

src/ls.c:5336–5639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5334}
5335
5336void
5337usage (int status)
5338{
5339 if (status != EXIT_SUCCESS)
5340 emit_try_help ();
5341 else
5342 {
5343 printf (_("Usage: %s [OPTION]... [FILE]...\n"), program_name);
5344 fputs (_("\
5345List information about the FILEs (the current directory by default).\n\
5346Sort entries alphabetically if none of -cftuvSUX nor --sort is specified.\n\
5347"), stdout);
5348
5349 emit_mandatory_arg_note ();
5350
5351 oputs (_("\
5352 -a, --all\n\
5353 do not ignore entries starting with .\n\
5354"));
5355 oputs (_("\
5356 -A, --almost-all\n\
5357 do not list implied . and ..\n\
5358"));
5359 oputs (_("\
5360 --author\n\
5361 with -l, print the author of each file\n\
5362"));
5363 oputs (_("\
5364 -b, --escape\n\
5365 print C-style escapes for nongraphic characters\n\
5366"));
5367 oputs (_("\
5368 --block-size=SIZE\n\
5369 with -l, scale sizes by SIZE when printing them;\n\
5370 e.g., '--block-size=M'; see SIZE format below\n\
5371"));
5372 oputs (_("\
5373 -B, --ignore-backups\n\
5374 do not list implied entries ending with ~\n\
5375"));
5376 oputs (_("\
5377 -c\n\
5378 with -lt: sort by, and show, ctime\n\
5379 (time of last change of file status information);\n\
5380 with -l: show ctime and sort by name;\n\
5381 otherwise: sort by ctime, newest first\n\
5382"));
5383 oputs (_("\
5384 -C\n\
5385 list entries by columns\n\
5386"));
5387 oputs (_("\
5388 --color[=WHEN]\n\
5389 color the output WHEN; more info below\n\
5390"));
5391 oputs (_("\
5392 -d, --directory\n\
5393 list directories themselves, not their contents\n\

Callers 1

decode_switchesFunction · 0.70

Calls 3

emit_mandatory_arg_noteFunction · 0.85
emit_size_noteFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected