a) 查看history保存的条数:$HISTSIZE,默认3000
b) 查看history保存的文件:cat /root/.bash_history
c) 执行history命令:!+id,id为历史命令的ID号
d) 执行!!:执行上一次的命令
e) 清除历史记录:-c
f) 恢复历史记录:-r
a) 查看history保存的条数:$HISTSIZE,默认3000
b) 查看history保存的文件:cat /root/.bash_history
c) 执行history命令:!+id,id为历史命令的ID号
d) 执行!!:执行上一次的命令
e) 清除历史记录:-c
f) 恢复历史记录:-r
本文标题:History命令操作
本文链接:https://www.haomeiwen.com/subject/wxweirtx.html
网友评论