1. 自动保存 Log
菜单栏 -> Settings -> Terminal, 在 Terminal features 区域中,勾选:
- Log terminal output to the following directory (不推荐手动换路径,我在 Win11 系统上,是用 MobaXterm 23.1 和 23.6 版本,选择路径时都会卡死)
- Log type 可以选择为带有时间戳的
Local shell settings 区域,切换默认的temrinal 为 Windows Powershell, 目的是能够运行 .cmd/.bat 脚本。
2. 使用
需要新开一个 terminal,通常是点击标签页 "+":