Command>>log 2>&1 Command>log 2>&1 本来file handle为1的是显示器,现在>>log将1绑定为文件log。 file handle为2的也是显示器,现在 2>&1 将2绑定到已经经过绑定的file handle 1(文件log)。