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 G, T, P,
40       E,  Z,  Y.   Binary prefixes can be used, too: KiB=K, MiB=M, and so on.
41       In this case the corresponding stream will be fully buffered  with  the
42       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

EXAMPLES

50       tail -f access.log | stdbuf -oL cut -d ' ' -f1 | uniq
51       This will immediately display unique entries from access.log
52

BUGS

54       On GLIBC  platforms,  specifying  a  buffer  size,  i.e.,  using  fully
55       buffered mode will result in undefined operation.
56

AUTHOR

58       Written by Padraig Brady.
59

REPORTING BUGS

61       GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
62       Report any translation bugs to <https://translationproject.org/team/>
63
65       Copyright  ©  2022  Free Software Foundation, Inc.  License GPLv3+: GNU
66       GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
67       This is free software: you are free  to  change  and  redistribute  it.
68       There is NO WARRANTY, to the extent permitted by law.
69

SEE ALSO

71       Full documentation <https://www.gnu.org/software/coreutils/stdbuf>
72       or available locally via: info '(coreutils) stdbuf invocation'
73
74
75
76GNU coreutils 9.1                  May 2023                          STDBUF(1)
Impressum