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

本文介绍了Linux中的标准输入(STDIN)、标准输出(STDOUT)和标准错误(STDERR),讲解了如何重定向输出和错误到文件,以及如何使用管道连接多个命令。通过示例展示了如何使用`>`、`2>`、`&>`、`>>`符号进行重定向,并解释了`|`字符在组合命令中的作用。
摘要由CSDN通过智能技术生成

前言

 

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

iOS逆向

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值