强制 history 不记住特定的命令

简介:

使用 HISTCONTROL 强制 history 不记住特定的命令
将 HISTCONTROL 设置为 ignorespace,并在不想被记住的命令前面输入一个空格:

# export HISTCONTROL=ignorespace


本文转自郝峰波博客园博客,原文链接:http://www.cnblogs.com/fengbohello/p/5050242.html,如需转载请自行联系原作者

相关文章
|
7月前
|
Linux
Linux命令之history
Linux命令 history
131 0
|
8月前
|
缓存 Go
history.go()和history.back(),history.go()不刷新
history.go()和history.back(),history.go()不刷新
|
缓存 移动开发 API
|
存储 Linux 应用服务中间件
history的操作你知道几个
history的操作你知道几个
113 0
history的操作你知道几个
|
Shell
history命令解析_学习笔记
时间:2017.11.13 作者:李强 参考:man,info,magedu讲义 声明:以下英文纯属个人翻译,英文B级,欢迎纠正,盗版不纠,才能有限,希望不误人子弟为好。 1、使用目的与场景     实现快速操作命令的一种方式 2、官方说明     Display or manipulate the history list. 3、写在前面     首先这里有两个概念history list和history file。
903 0
|
Shell 存储 Linux