读取标准输入,将其写到标准输出和文件中
tee [options] [files]
-a, --append # 在文件里追加,而不是覆盖
<cmd> 2>&1 | tee <cmd>.txt # 读取标准输出和标准错误