1STDBUF(1)                        User Commands                       STDBUF(1)
2
3
4

NAME

6       stdbuf  - Run COMMAND, with modified buffering operations for its stan‐
7       dard streams.
8

SYNOPSIS

10       stdbuf OPTION... COMMAND
11

DESCRIPTION

13       Run COMMAND,  with  modified  buffering  operations  for  its  standard
14       streams.
15
16       Mandatory  arguments  to  long  options are mandatory for short options
17       too.
18
19       -i, --input=MODE
20              adjust standard input stream buffering
21
22       -o, --output=MODE
23              adjust standard output stream buffering
24
25       -e, --error=MODE
26              adjust standard error stream buffering
27
28       --help display this help and exit
29
30       --version
31              output version information and exit
32
33       If MODE is 'L' the corresponding stream will be  line  buffered.   This
34       option is invalid with standard input.
35
36       If MODE is '0' the corresponding stream will be unbuffered.
37
38       Otherwise  MODE is a number which may be followed by one of the follow‐
39       ing: KB 1000, K  1024,  MB  1000*1000,  M  1024*1024,  and  so  on  for
40       G,T,P,E,Z,Y,R,Q.   Binary  prefixes can be used, too: KiB=K, MiB=M, and
41       so on.  In this case the corresponding stream will  be  fully  buffered
42       with the buffer size set to MODE bytes.
43
44       NOTE:  If  COMMAND adjusts the buffering of its standard streams ('tee'
45       does for example) then that  will  override  corresponding  changes  by
46       'stdbuf'.   Also  some  filters  (like  'dd'  and 'cat' etc.) don't use
47       streams for I/O, and are thus unaffected by 'stdbuf' settings.
48
49   Exit status:
50       125    if the stdbuf command itself fails
51
52       126    if COMMAND is found but cannot be invoked
53
54       127    if COMMAND cannot be found
55
56       -      the exit status of COMMAND otherwise
57

EXAMPLES

59       tail -f access.log | stdbuf -oL cut -d ' ' -f1 | uniq
60       This will immediately display unique entries from access.log
61

BUGS

63       On GLIBC  platforms,  specifying  a  buffer  size,  i.e.,  using  fully
64       buffered mode will result in undefined operation.
65

AUTHOR

67       Written by Padraig Brady.
68

REPORTING BUGS

70       GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
71       Report any translation bugs to <https://translationproject.org/team/>
72
74       Copyright  ©  2023  Free Software Foundation, Inc.  License GPLv3+: GNU
75       GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
76       This is free software: you are free  to  change  and  redistribute  it.
77       There is NO WARRANTY, to the extent permitted by law.
78

SEE ALSO

80       Full documentation <https://www.gnu.org/software/coreutils/stdbuf>
81       or available locally via: info '(coreutils) stdbuf invocation'
82
83
84
85GNU coreutils 9.3               September 2023                       STDBUF(1)
Impressum