$HISTCONTROL  –  Control History List

$HISTCONTROL is a colon-separated list of values to control how commands are saved on the history file.

Possible values

  • ignorespace: lines which begin with a space are not saved
  • ignoredups: lines which match the previous line are not saved
  • ignoreboth: shorthand for ignorespace and ignoredups
  • erasedups: all previous lines matching the current line are removed from the history
BashSupport Pro 是一个 支持 $HISTCONTROL 的 Bash 集成开发工具 – 马上试用
© 2020–2024 Joachim Ansorg
声明
隐私政策
许可条款