如何查看linux上的历史执行命令

2025-03-18 12:00:12
推荐回答(2个)
回答(1):

1>History命令语法: [test@linux]# history [n] [test@linux]# history [-c] [test@linux]# history [-raw] histfiles 参数: n :数字,要列出最近的 n 笔命令列表 -c :将目前的shell中的所有 history 内容全部消除 -

回答(2):

history | grep ls