Tags
#bash #unix
Question
Prevent saving certain commands in the history

by using HISTCONTROL and/or HISTIGNORE.

Setting HISTCONTROL to ignorespace will tell the shell to not save command lines starting with a space.

HISTIGNORE can contain patterns of commands not to save in the history. e.g. HISTIGNORE='ls:ls *' would prevent saving lines that contain only ls or ls, a space and anything after that.

Tags
#bash #unix
Question
Prevent saving certain commands in the history
?

Tags
#bash #unix
Question
Prevent saving certain commands in the history

by using HISTCONTROL and/or HISTIGNORE.

Setting HISTCONTROL to ignorespace will tell the shell to not save command lines starting with a space.

HISTIGNORE can contain patterns of commands not to save in the history. e.g. HISTIGNORE='ls:ls *' would prevent saving lines that contain only ls or ls, a space and anything after that.

If you want to change selection, open document below and click on "Move attachment"

Second terminal without history - Unix &amp; Linux Stack Exchange
ill have access to run-time history while the shell is running. You can also set HISTFILESIZE to control the amount of commands saved in the file. Prevent saving certain commands in the history <span>by using HISTCONTROL and/or HISTIGNORE . Setting HISTCONTROL to ignorespace will tell the shell to not save command lines starting with a space. HISTIGNORE can contain patterns of commands not to save in the history. e.g. HISTIGNORE='ls:ls *' would prevent saving lines that contain only ls or ls, a space and anything after that. For an "amnesiac" shell, you would need to apply one of those settings either manually when opening the shell, or set them in some shell startup script. One option would be to create, s

status measured difficulty not learned 37% [default] 0