查看 Shell 当前历史列表中记录的命令。
history | tail -n 15LINUX COMMAND ATLAS · 命令详解
查看 Shell 当前历史列表中记录的命令。
Shell builtinhistory [N] | history [-c] | history [-d OFFSET]
查看 Shell 当前历史列表中记录的命令。
history | tail -n 15显示最近 20 条命令。
history 20显示输出中的最后十条历史记录。
history | tail -n 10history 是 Shell 内建命令。清除当前列表不一定会删除已写入磁盘的历史记录。