1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-05 04:26:01 +02:00
tldr/pages/common/stdbuf.md
2021-03-30 11:11:17 -03:00

460 B

stdbuf

Run a command with modified buffering operations for its standard streams. More information: https://www.gnu.org/software/coreutils/manual/html_node/stdbuf-invocation.html.

  • Change the standard input buffer size to 512 KiB:

stdbuf --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}}