我正在试图确定一种方法,以避免删除以前在ubuntu-16.04上的终端命令历史。
我希望它有类似的行为Ctrl+L,但我已经养成了输入clear的习惯(因为在我升级之前,它在我的Ubuntu-14.04上有这种行为)。
有什么简单的方法吗?
我最初的想法是将别名明确为另一个命令,但我不知道这个命令会是什么样子。
有人能在这方面提供帮助吗?还是我只需要习惯使用Ctrl+L?
发布于 2017-06-01 05:59:31
人清空:
clears your screen if this is possible, including its scrollback
buffer (if the extended "E3" capability is defined).要了解这个扩展的"E3“是否已定义,以及如何更改此行为,这可能对您有用:https://superuser.com/questions/1094599/how-do-i-change-the-behavior-of-clear-on-centos7-such-that-it-will-not-clear
https://stackoverflow.com/questions/44299090
复制相似问题