1. windows:
//  屏蔽所有输出:
dir  /a  >null
//  屏蔽错误输出:
dir  /a  2>null
  1. linux:
//  屏蔽所有输出:
ls  &>/dev/null
//  屏蔽错误输出:
ls  2>/dev/null