diff options
| author | Soccera1 <[email protected]> | 2026-07-28 16:08:14 +1000 |
|---|---|---|
| committer | Soccera1 <[email protected]> | 2026-07-28 16:08:48 +1000 |
| commit | 9846f087eb28bf11df740675ef487657ded39b69 (patch) | |
| tree | e91dbd19b524f9432da6bcb86b1fc193e0d02e26 /man/du.1 | |
| parent | 7fa396c9ef22b32a0b05e94aaa0266dd3e7515f8 (diff) | |
| parent | 6a2f098e72e71437154ec00506e8e736aa8e1026 (diff) | |
| download | bnu-refactor/single-call-commands.tar.gz bnu-refactor/single-call-commands.zip | |
Merge branch 'master' into refactor/single-call-commandsrefactor/single-call-commands
# Conflicts:
# README.md
Diffstat (limited to 'man/du.1')
| -rw-r--r-- | man/du.1 | 168 |
1 files changed, 168 insertions, 0 deletions
diff --git a/man/du.1 b/man/du.1 new file mode 100644 index 0000000..f024e2e --- /dev/null +++ b/man/du.1 @@ -0,0 +1,168 @@ +.\" Adapted for BNU from the GNU Coreutils 9.11 manual page; see doc/README.md. +.TH DU "1" "2026-07-28" "BNU 9.11" "BNU Commands" +.SH NAME +du \- estimate file space usage +.SH SYNOPSIS +.B du +[\fI\,OPTION\/\fR]... [\fI\,FILE\/\fR]... +.br +.B du +[\fI\,OPTION\/\fR]... \fI\,--files0-from=F\/\fR +.SH DESCRIPTION +.\" This page is derived from GNU Coreutils documentation. +This page documents BNU, an independent Bun implementation compatible with +GNU Coreutils 9.11. +.PP +Summarize device usage of the set of FILEs, recursively for directories. +.PP +Mandatory arguments to long options are mandatory for short options too. +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-0'\fB\-0, \-\-null\fP\X'tty: link' +end each output line with NUL, not newline +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-a'\fB\-a, \-\-all\fP\X'tty: link' +write counts for all files, not just directories +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-A'\fB\-A, \-\-apparent\-size\fP\X'tty: link' +print apparent sizes rather than device usage; +although the apparent size is usually smaller, it may be +larger due to holes in ('sparse') files, +internal fragmentation, indirect blocks, etc. +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-B'\fB\-B, \-\-block\-size=\,SIZE\fP\X'tty: link'\/\fR +scale sizes by SIZE before printing them; See SIZE format below; +E.g., '\-BM' prints sizes in units of 1,048,576 bytes +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-b'\fB\-b, \-\-bytes\fP\X'tty: link' +equivalent to '\-\-apparent\-size \fB\-\-block\-size\fR=\fI\,1'\/\fR +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-c'\fB\-c, \-\-total\fP\X'tty: link' +produce a grand total +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-D'\fB\-D, \-\-dereference\-args\fP\X'tty: link' +dereference only symlinks that are listed on the command line +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-d'\fB\-d, \-\-max\-depth=\,N\fP\X'tty: link'\/\fR +print the total for a directory (or file, with \fB\-\-all\fR) +only if it is N or fewer levels below the command +line argument; \fB\-\-max\-depth\fR=\fI\,0\/\fR is the same as \fB\-\-summarize\fR +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du--files0-from'\fB\-\-files0\-from=F\fP\X'tty: link' +summarize device usage of the NUL\-terminated file names +specified in file F; if F is \-, read names from standard input +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-H'\fB\-H\fP\X'tty: link' +equivalent to \fB\-\-dereference\-args\fR (\fB\-D\fR) +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-h'\fB\-h, \-\-human\-readable\fP\X'tty: link' +print sizes in human readable format (e.g., 1K 234M 2G) +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du--inodes'\fB\-\-inodes\fP\X'tty: link' +list inode usage information instead of block usage +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-k'\fB\-k\fP\X'tty: link' +like \fB\-\-block\-size\fR=\fI\,1K\/\fR +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-L'\fB\-L, \-\-dereference\fP\X'tty: link' +dereference all symbolic links +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-l'\fB\-l, \-\-count\-links\fP\X'tty: link' +count sizes many times if hard linked +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-m'\fB\-m\fP\X'tty: link' +like \fB\-\-block\-size\fR=\fI\,1M\/\fR +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-P'\fB\-P, \-\-no\-dereference\fP\X'tty: link' +don't follow any symbolic links (this is the default) +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-S'\fB\-S, \-\-separate\-dirs\fP\X'tty: link' +for directories do not include size of subdirectories +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du--si'\fB\-\-si\fP\X'tty: link' +like \fB\-h\fR, but use powers of 1000 not 1024 +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-s'\fB\-s, \-\-summarize\fP\X'tty: link' +display only a total for each argument +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-t'\fB\-t, \-\-threshold=\,SIZE\fP\X'tty: link'\/\fR +exclude entries smaller than SIZE if positive, +or entries greater than SIZE if negative +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du--time'\fB\-\-time\fP\X'tty: link' +show time of the last modification of any file in the directory, +or any of its subdirectories +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du--time'\fB\-\-time=WORD\fP\X'tty: link' +show time as WORD instead of modification time: +atime, access, use, ctime or status +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du--time-style'\fB\-\-time\-style=STYLE\fP\X'tty: link' +time/date format with \fB\-\-time\fR; see TIME_STYLE below +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-X'\fB\-X, \-\-exclude\-from=\,FILE\fP\X'tty: link'\/\fR +exclude files that match any pattern in FILE +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du--exclude'\fB\-\-exclude=PATTERN\fP\X'tty: link' +exclude files that match PATTERN +.TP +\X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#du-x'\fB\-x, \-\-one\-file\-system\fP\X'tty: link' +skip directories on different file systems +.TP +\X'tty: link https://www.gnu.org/software/coreutils/du#du--help'\fB\-\-help\fP\X'tty: link' +display this help and exit +.TP +\X'tty: link https://www.gnu.org/software/coreutils/du#du--version'\fB\-\-version\fP\X'tty: link' +output version information and exit +.PP +Display values are in units of the first available SIZE from \fB\-\-block\-size\fR, +and the DU_BLOCK_SIZE, BLOCK_SIZE and BLOCKSIZE environment variables. +Otherwise, units default to 1024 bytes (or 512 if POSIXLY_CORRECT is set). +.PP +The SIZE argument is an integer and optional unit (example: 10K is 10*1024). +Units are K,M,G,T,P,E,Z,Y,R,Q (powers of 1024) or KB,MB,... (powers of 1000). +Binary prefixes can be used, too: KiB=K, MiB=M, and so on. +.PP +The \fB\-\-time\-style\fR STYLE argument can be full\-iso, long\-iso, iso, or +FORMAT. +FORMAT is interpreted like in \fBdate\fP(1). +Also the TIME_STYLE environment variable sets the default style to use. +.SH PATTERNS +PATTERN is a shell pattern (not a regular expression). The pattern +.B ?\& +matches any one character, whereas +.B * +matches any string (composed of zero, one or multiple characters). For +example, +.B *.o +will match any files whose names end in +.BR .o . +Therefore, the command +.IP +.B du \-\-exclude=\(aq*.o\(aq +.PP +will skip all files and subdirectories ending in +.B .o +(including the file +.B .o +itself). +.SH AUTHORS +Upstream GNU Coreutils documentation authors: +Written by Torbjorn Granlund, David MacKenzie, Paul Eggert, +and Jim Meyering. +.br +Adapted for BNU; the BNU implementation is independent. +.SH "REPORTING BUGS" +Report BNU bugs at <https://github.com/Soccera1/bnu/issues>. +.br +For upstream GNU Coreutils, see <https://www.gnu.org/software/coreutils/>. +.SH COPYRIGHT +Copyright \(co 2026 Free Software Foundation, Inc. +.br +This manual page was adapted for BNU in 2026. +License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>. +.br +This is free software: you are free to change and redistribute it. +There is NO WARRANTY, to the extent permitted by law. +.SH "SEE ALSO" +Upstream documentation <https://www.gnu.org/software/coreutils/du> +.br +BNU documentation is available locally via: info \(aq(bnu) du invocation\(aq |
