Linux基础:【标准输入和输出】

网友投稿 509 2022-05-28

前言

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.标准输出和标准错误能重定向到文件中:

Linux基础:【标准输入和输出】

命令   操作 文件名

支持的操作包括:

> 重定向标准输出到文件

2> 重定向标准错误到文件

&> 重定向所有的输出到文件

· 文件内容模式被覆盖. >> 用在追加.

3重定向输出给一个文件示例

Linux

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:计算机中的dump到底是什么意思?
下一篇:docker 容器资源限制
相关文章