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

Function usage

src/stat.c:1748–1887  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1746}
1747
1748void
1749usage (int status)
1750{
1751 if (status != EXIT_SUCCESS)
1752 emit_try_help ();
1753 else
1754 {
1755 printf (_("Usage: %s [OPTION]... FILE...\n"), program_name);
1756 fputs (_("\
1757Display file or file system status.\n\
1758"), stdout);
1759
1760 emit_mandatory_arg_note ();
1761
1762 oputs (_("\
1763 -L, --dereference\n\
1764 follow links\n\
1765"));
1766 oputs (_("\
1767 -f, --file-system\n\
1768 display file system status instead of file status\n\
1769"));
1770 oputs (_("\
1771 --cached=MODE\n\
1772 specify how to use cached attributes;\n\
1773 useful on remote file systems. See MODE below\n\
1774"));
1775 oputs (_("\
1776 -c, --format=FORMAT\n\
1777 use the specified FORMAT instead of the default;\n\
1778 output a newline after each use of FORMAT\n\
1779"));
1780 oputs (_("\
1781 --printf=FORMAT\n\
1782 like --format, but interpret backslash escapes,\n\
1783 and do not output a mandatory trailing newline;\n\
1784 if you want a newline, include \\n in FORMAT\n\
1785"));
1786 oputs (_("\
1787 -t, --terse\n\
1788 print the information in terse form\n\
1789"));
1790 oputs (HELP_OPTION_DESCRIPTION);
1791 oputs (VERSION_OPTION_DESCRIPTION);
1792
1793 fputs (_("\n\
1794The MODE argument of --cached can be: always, never, or default.\n\
1795'always' will use cached attributes if available, while\n\
1796'never' will try to synchronize with the latest attributes, and\n\
1797'default' will leave it up to the underlying file system.\n\
1798"), stdout);
1799
1800 fputs (_("\n\
1801The valid format sequences for files (without --file-system):\n\
1802\n\
1803 %a permission bits in octal (see '#' and '0' printf flags)\n\
1804 %A permission bits and file type in human readable form\n\
1805 %b number of blocks allocated (see %B)\n\

Callers 1

mainFunction · 0.70

Calls 2

emit_mandatory_arg_noteFunction · 0.85
emit_ancillary_infoFunction · 0.85

Tested by

no test coverage detected