https://man.linuxde.net/tee
把标准输出复制一份重定向到文件。
把标准错误也输出到文件的方法是,把标准错误stderr重定向到标准输出,即
ls -l 2 >&1| tee filet.txt |less