stdbuf
Run a command with modified buffering operations for its standard streams. More information: <https://www.gnu.org/software/coreutils/stdbuf>.
Install
- All systems
-
curl cmd.cat/stdbuf.sh
- Debian
-
apt-get install coreutils - Ubuntu
-
apt-get install coreutils -
Alpine
-
apk add coreutils - Arch Linux
-
pacman -S coreutils - Kali Linux
-
apt-get install coreutils - CentOS
-
yum install coreutils - Fedora
-
dnf install coreutils - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install coreutils - OS X
-
brew install coreutils - Raspbian
-
apt-get install coreutils - Docker
-
docker run cmd.cat/stdbuf stdbufpowered by Commando
Run a command with modified buffering operations for its standard streams. More information: <https://www.gnu.org/software/coreutils/stdbuf>.
-
Change `stdin` buffer size to 512 KiB:
stdbuf --input=512K command -
Change `stdout` buffer to line-buffered:
stdbuf --output=L command -
Change `stderr` buffer to unbuffered:
stdbuf --error=0 command
© tl;dr; authors and contributors