.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.47.3. .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH STDBUF 1 2020年三月 "GNU coreutils 8.32" 用戶命令 .SH 名稱 stdbuf \- 運行給定的命令,同時改變該命令對應標準輸入輸出流的緩衝操作配置。 .SH 概述 \fBstdbuf\fP \fI\,選項\/\fP... \fI\,命令\/\fP .SH 描述 .\" Add any additional description here .PP 運行給定的命令,同時改變該命令對應標準輸入輸出流的緩衝操作配置。 .PP 必選參數對長短選項同時適用。 .TP \fB\-i\fP, \fB\-\-input\fP=\fI\,模式\/\fP 調整標準輸入流緩衝區 .TP \fB\-o\fP, \fB\-\-output\fP=\fI\,模式\/\fP 調整標準輸出流緩衝區 .TP \fB\-e\fP, \fB\-\-error\fP=\fI\,模式\/\fP 調整標準錯誤流緩衝區 .TP \fB\-\-help\fP 顯示此幫助信息並退出 .TP \fB\-\-version\fP 顯示版本信息並退出 .PP 若模式是 "L",則相應的流將是行緩衝模式。標準輸入流下此選項無效。 .PP 若模式是 "0",則相應的流將不緩衝。 .PP Otherwise MODE is a number which may be followed by one of the following: KB 1000, K 1024, MB 1000*1000, M 1024*1024, and so on for G, T, P, E, Z, Y. Binary prefixes can be used, too: KiB=K, MiB=M, and so on. In this case the corresponding stream will be fully buffered with the buffer size set to MODE bytes. .PP 注意:若指定的命令調整了其自身的標準流緩衝區(例如 tee 命令),則此操作會覆蓋由 "stdbuf" 工具所做出的相應設置。還有某些過濾器程序(如 "dd" 和 "cat" 之類)不使用輸入輸出流,因此不受 "stdbuf" 設置的影響。 .SH 範例 \fBtail \-f access.log | stdbuf \-oL cut \-d \(aq \(aq \-f1 | uniq\fP .br 這樣會立刻顯示 access.log 中獨特的條目。 .SH BUGS 在基於 GLIBC 的平臺上,指定緩衝大小(即使用全緩衝模式)通常會導致未定義的操作。 .SH 作者 由 Padraig Brady 編寫。 .SH 報告錯誤 GNU coreutils 的在線幫助: .br 請向 報告翻譯錯誤。 .SH 版權 Copyright \(co 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later . .br This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. .SH 參見 完整文檔請見: .br 或者在本地使用: info \(aq(coreutils) stdbuf invocation\(aq .SH "跋" .br 本頁面中文版由中文 man 手冊頁計劃提供。 .br 中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR