command 2&>/dev/null #就不显示错误command 1&>/dev/null 2&>/dev/null #取消所有输出
其中command是要调用的脚本,其后的内容不算作参数,被shell直接解析如果改成
command 2&>file
就会将错误重定向到file文件