咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

linux tee命令如何使用

2017-01-12 07:49:13 10471次

tee指令会从标准输入设备读取数据,将其内容输出到标准输出设备,同时保存成文件。

我们建立 /tmp/test 测试文件夹

echo "landuiyun" | tee /tmp/test/landui.txt

landuiyun会输出到屏幕,同时会写入到landui.txt文件中

blob.png

首页
最新活动
个人中心