About "command >/dev/null 2>&1"
时间:2009-08-12 来源:creatory
About "command >/dev/null 2>&1"
/dev/null is a empty device,like a black hole,all the message will be thrown if a output redirects into here.It means don't display every message on screen.
1 stands for standard output.2 stands for standard error.
& stands for get address of 1.
2>&1 stands for redirect standard error to standard output.
/dev/null is a empty device,like a black hole,all the message will be thrown if a output redirects into here.It means don't display every message on screen.
1 stands for standard output.2 stands for standard error.
& stands for get address of 1.
2>&1 stands for redirect standard error to standard output.
相关阅读 更多 +