一天一linux命令(15) history 历史命令
来源:互联网 发布:显示器色彩测试软件 编辑:程序博客网 时间:2024/05/29 11:19
命令记录
~/.bash_history记录的是本次登入以前执行过的指令,至于本次登入执行的指令都被暂存在内存中,当您成功注销系统后,该指令记忆才会记录到.bash_history中。
history
[!number] [!command] [!!]
参数说明:
number :第几个指令
command :指令的开头几个字母
! :上一个指令
范例:
例一:列出所记录的历史命令。显示格式:(1)历史指令的编号;(2)指令的内容
$ history
...
66 man rm
67 alias
68 man history
69 history
例二:执行第66 个历史指令
$ !66
例三:执行上一个指令(在本例中,就是!66指令)
$ !!
例四:执行最近一次以al 为开头的指令内容,就是第67 个指令
$ !al
- 一天一linux命令(15) history 历史命令
- linux--历史命令--history
- linux--历史命令:history
- linux history历史命令介绍
- linux history历史命令介绍
- Linux查看历史命令 history
- linux history历史命令介绍
- Linux查看历史命令 history
- Linux查看历史命令 history
- linux查看历史命令history
- linux查看历史命令history
- linux查看历史命令history
- Linux中history历史命令使用方法详解
- Linux中history历史命令使用方法详解
- Linux中history历史命令使用方法详解
- Linux中history历史命令使用方法详解
- 4 Linux 查看历史命令 - history
- Linux中history历史命令使用方法详解
- Action 动作
- sql查找表中列的属性
- UTMS 信令培训(1)
- js null,'0','unfined'
- CSS选择器
- 一天一linux命令(15) history 历史命令
- hive表乱码问题
- cocos2d-x 颜色混合
- 怎样测试返回是promise的service
- tablet systemUI修改
- 吉哥系列故事——临时工计划 hdu 4502
- 画出自己的UI组件
- android中Invalidate和postInvalidate的区别
- 如何在SCI检索杂志上发表论文?