linux shell重定向

  将shell的错误输出重定向到标准输出,这样就可以记录脚本的出错信息。

  如:

  /root/test.sh >> test.log 2>&1

  注:

  linux先加载 /etc/rc.d/rc.local 后加载 /etc/profile