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

Function usage

src/df.c:1491–1587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1489}
1490
1491void
1492usage (int status)
1493{
1494 if (status != EXIT_SUCCESS)
1495 emit_try_help ();
1496 else
1497 {
1498 printf (_("Usage: %s [OPTION]... [FILE]...\n"), program_name);
1499 fputs (_("\
1500Show information about the file system on which each FILE resides,\n\
1501or all file systems by default.\n\
1502"), stdout);
1503
1504 emit_mandatory_arg_note ();
1505
1506 /* TRANSLATORS: The thousands and decimal separators are best
1507 adjusted to an appropriate default for your locale. */
1508 oputs (_("\
1509 -a, --all\n\
1510 include pseudo, duplicate, inaccessible file systems\n\
1511"));
1512 oputs (_("\
1513 -B, --block-size=SIZE\n\
1514 scale sizes by SIZE before printing them; see SIZE format below;\n\
1515 E.g., '-BM' prints sizes in units of 1,048,576 bytes\n\
1516"));
1517 oputs (_("\
1518 -h, --human-readable\n\
1519 print sizes in powers of 1024 (e.g., 1023M)\n\
1520"));
1521 oputs (_("\
1522 -H, --si\n\
1523 print sizes in powers of 1000 (e.g., 1.1G)\n\
1524"));
1525 oputs (_("\
1526 -i, --inodes\n\
1527 list inode information instead of block usage\n\
1528"));
1529 oputs (_("\
1530 -k\n\
1531 like --block-size=1K\n\
1532"));
1533 oputs (_("\
1534 -l, --local\n\
1535 limit listing to local file systems\n\
1536"));
1537 oputs (_("\
1538 --no-sync\n\
1539 do not invoke sync before getting usage info (default)\n\
1540"));
1541 oputs (_("\
1542 --output[=FIELD_LIST]\n\
1543 use the output format defined by FIELD_LIST,\n\
1544 or print all fields if FIELD_LIST is omitted\n\
1545"));
1546 oputs (_("\
1547 -P, --portability\n\
1548 use the POSIX output format\n\

Callers 2

decode_output_argFunction · 0.70
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