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

376 B
Raw Blame History

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