摘要: Typically, the syntax of these characters is as follows, using to redirect output.command1 > file1executes command1, placing the outp... 阅读全文
posted @ 2015-05-13 16:14 vigorpush 阅读(193) 评论(0) 推荐(0) 编辑
摘要: That part is written to stderr, use 2> to redirect it. For example:foo > stdout.txt 2> stderr.txtor if you want in same file:foo > all... 阅读全文
posted @ 2015-05-13 15:53 vigorpush 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 2>&1 # Redirects stderr to stdout. # Error messages get sent to same place as standard output. >>filename 2>&1 ... 阅读全文
posted @ 2015-05-13 15:51 vigorpush 阅读(121) 评论(0) 推荐(0) 编辑
摘要: here are three types of I/O, which each have their own identifier, called a file descriptor:standard input: 0standard output: 1standar... 阅读全文
posted @ 2015-05-13 15:38 vigorpush 阅读(117) 评论(0) 推荐(0) 编辑