Linux基礎:【標準輸入和輸出】
前言
tail -lf?? W1E2B2_*
-f
If the input file is a regular file or if the File parameter specifies a FIFO (first-in-first-out), the tail command does not terminate after
the last specified unit of the input file has been copied, but continues to read and copy additional units from the input file as they become
available. If no File parameter is specified and standard input is a pipe, the -f flag is ignored. The tail -f command can be used to monitor
the growth of a file being written by another process.
正文
1.linux提供了三種輸入/輸出通道給程序
標準輸入(STDIN) - 缺省為鍵盤
標準輸出(STDOUT) - 默認為終端窗口
標準錯誤(STDERR) - 默認為終端窗口
2.標準輸出和標準錯誤能重定向到文件中:
命令 ? 操作 文件名
支持的操作包括:
> 重定向標準輸出到文件
2> 重定向標準錯誤到文件
&> 重定向所有的輸出到文件
· 文件內容模式被覆蓋. >> 用在追加.
3重定向輸出給一個文件示例
版權聲明:本文內容由網絡用戶投稿,版權歸原作者所有,本站不擁有其著作權,亦不承擔相應法律責任。如果您發現本站中有涉嫌抄襲或描述失實的內容,請聯系我們jiasou666@gmail.com 處理,核實后本網站將在24小時內刪除侵權內容。
版權聲明:本文內容由網絡用戶投稿,版權歸原作者所有,本站不擁有其著作權,亦不承擔相應法律責任。如果您發現本站中有涉嫌抄襲或描述失實的內容,請聯系我們jiasou666@gmail.com 處理,核實后本網站將在24小時內刪除侵權內容。