例1) command1 2>&1 > file 2>&1 stderr の出力を stdout が示す出力へ切り替えた stderr: /dev/tty stdout: /dev/tty > file stdout の出力を file へ切り替えた stderr: /dev/tty stdout: ./file 例2) command1 2>&1 | command2 stderr の出力を stdout が示す出力へ切り替えた stderr: /dev/tty stdout: /dev/tty | command2 command2 の stdin を command1 の stdout に切り替えた