国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
linux命令之tee
tee 重定向輸出到多個(gè)文件

在執(zhí)行Linux命令時(shí),我們既想把輸出保存到文件中,又想在屏幕上看到輸出內(nèi)容,就可以使用tee命令
要注意的是:在使用管道線時(shí),前一個(gè)命令的標(biāo)準(zhǔn)錯(cuò)誤輸出不會(huì)被tee讀取。

$ man tee
NAME
       tee - read from standard input and write to standard output and files

SYNOPSIS
       tee [OPTION]... [FILE]...

DESCRIPTION
       Copy standard input to each FILE, and also to standard output.

       -a, --append
              append to the given FILEs, do not overwrite

       -i, --ignore-interrupts
              ignore interrupt signals

       --help display this help and exit

       --version
              output version information and exit

       If a FILE is -, copy again to standard output.

常見用例:
 
tee file     //覆蓋

tee -a file    //追加

tee -        //輸出到標(biāo)準(zhǔn)輸出兩次
tee - -    //輸出到標(biāo)準(zhǔn)輸出三次

tee file1 file2 -    //輸出到標(biāo)準(zhǔn)輸出兩次,并寫到那兩個(gè)文件中

ls | tee file   

另:把標(biāo)準(zhǔn)錯(cuò)誤也被tee讀取
ls '*' 2>&1 | tee ls.txt 



本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
tee命令用法
linux
Linux下文本文件合并和去除重復(fù)操作
Linux中記錄終端輸出到文本文件的三種方法
Linux如何使用inode刪除文件
【天馬行空】linux中的一些命令
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服