linux怎么把标准输出重定向其他文件?
command > filename 把把標(biāo)準(zhǔn)輸出重定向到一個(gè)新文件中command >> filename 把把標(biāo)準(zhǔn)輸出重定向到一個(gè)文件中(追加)command
1 > fielname 把把標(biāo)準(zhǔn)輸出重定向到一個(gè)文件中command > filename 2>&1 把把標(biāo)準(zhǔn)輸出和標(biāo)準(zhǔn)錯(cuò)誤一起重定向到一個(gè)文件中command
2 > filename 把把標(biāo)準(zhǔn)錯(cuò)誤重定向到一個(gè)文件中command 2 >> filename 把把標(biāo)準(zhǔn)輸出重定向到一個(gè)文件中(追加)command >> filename 2>&1 把把標(biāo)準(zhǔn)輸出和標(biāo)準(zhǔn)錯(cuò)誤一起重定向到一個(gè)文件中(追加)command < filename > filename2把command命令以filename文件作為標(biāo)準(zhǔn)輸入,以filename2文件作為標(biāo)準(zhǔn)輸出command < filename 把command命令以filename文件作為標(biāo)準(zhǔn)輸入command << delimiter 把從標(biāo)準(zhǔn)輸入中讀入,直至遇到delimiter分界符command <&m 把把文件描述符m作為標(biāo)準(zhǔn)輸入command >&m 把把標(biāo)準(zhǔn)輸出重定向到文件描述符m中command <&- 把關(guān)閉標(biāo)準(zhǔn)輸入
總結(jié)
以上是生活随笔為你收集整理的linux怎么把标准输出重定向其他文件?的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: springboot 多个sevice类
- 下一篇: 手机gpu调度模式哪个好?