diff --git a/pages/common/stdbuf.md b/pages/common/stdbuf.md new file mode 100644 index 0000000000..33886266a8 --- /dev/null +++ b/pages/common/stdbuf.md @@ -0,0 +1,15 @@ +# stdbuf + +> Run a command with modified buffering operations for its standard streams. + +- Change the standard input buffer size to 512 KiB: + +`stderr --input={{512K}} {{command}}` + +- Change the standard output buffer to line-buffered: + +`stdbuf --output={{L}} {{command}}` + +- Change the standard error buffer to unbuffered: + +`stdbuf --error={{0}} {{command}}`