Ubuntu下,默认终端输出的内容,只保留了最近的512行,去: 终端中任意地方右键->Profiles->Profile Preferences->Scrolling->Scrollback->设置为:Unlimited