Original address: http://blog.csdn.net/adam040606/article/details/46778321
- >/dev/null
Output to an empty device, indicating that the output information is lost.
- 2 > &1
The information output to standard error is output to the standard output device (usually the screen)
with 3 default i/o,
- 0 is standard input, usually keyboard
- 1 is the standard output, usually the screen
- 2 is the standard error, sometimes you can see it on the screen, but it is what you can't see in the redirected file
example:
$perl shuffle.pl text1.txt 1>/dev/null 2>&1