mysql>tee /home/a.txt mysql>show processlist; mysql>exit tee命令能重定向输出,同时屏幕会同步显示。 转载于:https://www.cnblogs.com/helww/p/3291099.html