BASH: history

 

HISTCONTROL variable is a colon-separated list of values controlling how commands are saved in the history list.

HISTCONTROL=ignoredups

It causes lines matching the previous history entry to not be included. It does not add a command to history if it's the same as the immediate previous commands. It doesn't further back in the history list

HISTCONTROL=ignorespace

causes lines that begin with a white space character to not be included in the history list

HISTCONTROL=ignoreboth

It is the same as HISTCONTROL=ignorespace:ignoredups

HISTCONTROL=erasedups

It allows all previous lines matching the current line to be eliminated from the history list before that line is saved

posted @   ascertain  阅读(21)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
历史上的今天:
2022-04-05 MySQL: 日期函数
2022-04-05 MySQL: 数学函数
2022-04-05 MySQL: 字符串函数
2021-04-05 JavaScript时间处理
2021-04-05 httpd 集成 php 模块
点击右上角即可分享
微信分享提示