Files
tldr/pages.zh/common/stdbuf.md

16 lines
376 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# stdbuf
> 使用修改的标准流缓冲操作运行命令。
> 更多信息:<https://www.gnu.org/software/coreutils/stdbuf>。
-`stdin` 缓冲区大小更改为 512 KiB
`stdbuf --input=512K {{command}}`
-`stdout` 缓冲区更改为行缓冲:
`stdbuf --output=L {{command}}`
-`stderr` 缓冲区更改为无缓冲:
`stdbuf --error=0 {{command}}`