commands.sh

stdbuf

all

Run a command with modified buffering operations for its standard streams.

More info →

Options (3)

-i, --inputboolean

Change `stdin` buffer size to 512 KiB

Example: stdbuf {{[-i|--input]}} 512K {{command}}
-o, --outputboolean

Change `stdout` buffer to line-buffered

Example: stdbuf {{[-o|--output]}} L {{command}}
-e, --errorboolean

Change `stderr` buffer to unbuffered

Example: stdbuf {{[-e|--error]}} 0 {{command}}

Examples (3)

Change `stdin` buffer size to 512 KiB

stdbuf [-i|--input] 512K command

Change `stdout` buffer to line-buffered

stdbuf [-o|--output] L command

Change `stderr` buffer to unbuffered

stdbuf [-e|--error] 0 command
made by @shridhargupta | data from tldr-pages