Do you want BuboFlash to help you learning these things? Or do you want to add or correct something? Click here to log in or create user.



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

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
Answer
?

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

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 & 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

Summary

statusnot learnedmeasured difficulty37% [default]last interval [days]               
repetition number in this series0memorised on               scheduled repetition               
scheduled repetition interval               last repetition or drill

Details

No repetitions


Discussion

Do you want to join discussion? Click here to log in or create user.