美文网首页
History命令操作

History命令操作

作者: 海纳百河 | 来源:发表于2022-07-20 13:29 被阅读0次

a) 查看history保存的条数:$HISTSIZE,默认3000

b) 查看history保存的文件:cat /root/.bash_history

c) 执行history命令:!+id,id为历史命令的ID号

d) 执行!!:执行上一次的命令

e) 清除历史记录:-c

f) 恢复历史记录:-r

相关文章

  • Linux常用命令

    操作命令 基础命令 Clear(ctrl+l)清屏History 查看历史命令history -c 清除历史命令 ...

  • History命令操作

    a)查看history保存的条数:$HISTSIZE,默认3000 b)查看history保存的文件:cat /r...

  • 活用History命令

    谁动了我的主机? 之活用History命令 Linux系统下可通过history命令查看用户所有的历史操作记录,在...

  • Linux学习笔记-day1

    简单操作指令 history 执行历史命令 !对应数字 history -c 清除;历史记录 tab补全,双tab...

  • Shell基础

    一、历史命令history history命令 history-c 清空历史命令history-w 把缓存(当前会...

  • Linux命令 history 2019-02-20

    history命令 history命令:用于显示历史记录和执行过的指令命令。history命令读取历史命令文件中的...

  • 2-4 history 命令

    history:显示历史命令。 1、history 查看历史输入。 2、快速执行 history 中的历史命令。 ...

  • history

    history显示近期执行的命令 显示history保存多少条命令 显示日志记录文件 设置history的忽略 修...

  • 21 历史命令与命令补全

    history 历史命令history [选项] [历史命令保存文件]-c 清空历史命令-w 把缓存中的历史命令写...

  • linux history命令

    history命令history -c 清空历史所有输入命令记录!序号 执行历史命令中序号为2的命令例如:

网友评论

      本文标题:History命令操作

      本文链接:https://www.haomeiwen.com/subject/wxweirtx.html