码迷,mamicode.com
首页 > 系统相关 > 详细

linux下将编译错误输出到一个文本文件

时间:2017-01-12 13:18:54      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:文件中   定向   man   file   command   重定向   and   name   错误   

linux下将编译错误输出到一个文本文件

command > filename 把把标准输出重定向到一个新文件中

command > > filename 把把标准输出重定向到一个文件中(追加)

command 1 > fielname 把把标准输出重定向到一个文件中

command > filename 2> &1 把把标准输出和标准错误一起重定向到一个文件中

command 2 > filename 把把标准错误重定向到一个文件中

command 2 > > filename 把把标准输出重定向到一个文件中(追加)

command > > filename 2> &1 把把标准输出和标准错误一起重定向到一个文件中(追加)

linux下将编译错误输出到一个文本文件

标签:文件中   定向   man   file   command   重定向   and   name   错误   

原文地址:http://www.cnblogs.com/xujingyang/p/6275803.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!