Debian Codegraph @

upstream/debian-unstable/man1/stdbuf.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1.
2 .TH STDBUF "1" "February 2026" "GNU coreutils 9.10" "User Commands"
3 .SH NAME
4 stdbuf \-
5 Run COMMAND, with modified buffering operations for its standard streams.
6 .SH SYNOPSIS
7 .B stdbuf
8 \fI\,OPTION\/\fR... \fI\,COMMAND\/\fR
9 .SH DESCRIPTION
10 .\" Add any additional description here
11 .PP
12 Run COMMAND, with modified buffering operations for its standard streams.
13 .PP
14 Mandatory arguments to long options are mandatory for short options too.
15 .TP
16 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#stdbuf-i'\fB\-i, \-\-input=\,MODE\fP\X'tty: link'\/\fR
17 adjust standard input stream buffering
18 .TP
19 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#stdbuf-o'\fB\-o, \-\-output=\,MODE\fP\X'tty: link'\/\fR
20 adjust standard output stream buffering
21 .TP
22 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#stdbuf-e'\fB\-e, \-\-error=\,MODE\fP\X'tty: link'\/\fR
23 adjust standard error stream buffering
24 .TP
25 \X'tty: link https://www.gnu.org/software/coreutils/stdbuf#stdbuf--help'\fB\-\-help\fP\X'tty: link'
26 display this help and exit
27 .TP
28 \X'tty: link https://www.gnu.org/software/coreutils/stdbuf#stdbuf--version'\fB\-\-version\fP\X'tty: link'
29 output version information and exit
30 .PP
31 If MODE is 'L' the corresponding stream will be line buffered.
32 This option is invalid with standard input.
33 .PP
34 If MODE is '0' the corresponding stream will be unbuffered.
35 .PP
36 Otherwise MODE is a number which may be followed by one of the following:
37 KB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G,T,P,E,Z,Y,R,Q.
38 Binary prefixes can be used, too: KiB=K, MiB=M, and so on.
39 In this case the corresponding stream will be fully buffered with the buffer
40 size set to MODE bytes.
41 .PP
42 NOTE: If COMMAND adjusts the buffering of its standard streams ('tee' does
43 for example) then that will override corresponding changes by 'stdbuf'.
44 Also some filters (like 'dd' and 'cat' etc.) don't use streams for I/O,
45 and are thus unaffected by 'stdbuf' settings.
46 .SS "Exit status:"
47 .TP
48 125
49 if the stdbuf command itself fails
50 .TP
51 126
52 if COMMAND is found but cannot be invoked
53 .TP
54 127
55 if COMMAND cannot be found
56 .TP
57 \-
58 the exit status of COMMAND otherwise
59 .SH EXAMPLES
60 .B tail -f access.log | stdbuf -oL cut -d \(aq \(aq -f1 | uniq
61 .br
62 This will immediately display unique entries from access.log
63 .SH BUGS
64 On GLIBC platforms, specifying a buffer size, i.e., using fully buffered mode
65 will result in undefined operation.
66 .SH AUTHOR
67 Written by Padraig Brady.
68 .SH "REPORTING BUGS"
69 Report bugs to: bug\[email protected]
70 .br
71 GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
72 .br
73 General help using GNU software: <https://www.gnu.org/gethelp/>
74 .br
75 Report any translation bugs to <https://translationproject.org/team/>
76 .SH "SEE ALSO"
77 Full documentation <https://www.gnu.org/software/coreutils/stdbuf>
78 .br
79 or available locally via: info \(aq(coreutils) stdbuf invocation\(aq
80 .PP
81 .br
82 Packaged by Debian (9.10\-1)
83 .br
84 Copyright \(co 2026 Free Software Foundation, Inc.
85 .br
86 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
87 .br
88 This is free software: you are free to change and redistribute it.
89 .br
90 There is NO WARRANTY, to the extent permitted by law.