From f073b0920290b4567dac4943537699911a84bab5 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 27 Nov 2018 13:23:15 +0000 Subject: [PATCH] stdbuf: add page (#2618) * stdbuf: add page --- pages/common/stdbuf.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/common/stdbuf.md 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}}`