Vim

In vi I use

:%d

where

history 历史记录。 它显示了在终端中所执行过的所有命令的历史

Debian

sudo apt install htop