Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

stdbuf

v(uutils coreutils) 0.8.0
stdbuf [OPCIÓN]... COMANDO

Ejecutar COMANDO, con operaciones de almacenamiento en búfer modificadas para sus flujos estándar.

Los argumentos obligatorios para opciones largas son obligatorios también para opciones cortas.

Options

--input=<MODE>, -i <MODE>

ajustar almacenamiento en búfer del flujo de entrada estándar

--output=<MODE>, -o <MODE>

ajustar almacenamiento en búfer del flujo de salida estándar

--error=<MODE>, -e <MODE>

ajustar almacenamiento en búfer del flujo de error estándar

Si MODO es ‘L’ el flujo correspondiente será almacenado en búfer por líneas. Esta opción no es válida con entrada estándar.

Si MODO es ‘0’ el flujo correspondiente no tendrá búfer.

De lo contrario, MODO es un número que puede ser seguido por uno de los siguientes:

KB 1000, K 1024, MB 10001000, M 10241024, y así sucesivamente para G, T, P, E, Z, Y. En este caso el flujo correspondiente será completamente almacenado en búfer con el tamaño de búfer establecido a MODO bytes.

NOTA: Si COMANDO ajusta el almacenamiento en búfer de sus flujos estándar (tee hace por ej.) entonces eso anulará las configuraciones correspondientes cambiadas por stdbuf. También algunos filtros (como dd y cat etc.) no usan flujos para E/S, y por lo tanto no son afectados por las configuraciones de stdbuf.

Examples

The examples have not been translated yet and are shown in English. You can help by translating them on tldr-pages.

Change stdin buffer size to 512 KiB:

stdbuf {{[-i|--input]}} 512K {{command}}

Change stdout buffer to line-buffered:

stdbuf {{[-o|--output]}} L {{command}}

Change stderr buffer to unbuffered:

stdbuf {{[-e|--error]}} 0 {{command}}

The examples are provided by the tldr-pages project under the CC BY 4.0 License.

Please note that, as uutils is a work in progress, some examples might fail.