This is something that I have wanted to know for a really long time, but never came around to actually posing a question.
I know that in the terminal that is provided in Linux distros, the entire history of commands can be seen by using the arrow keys (if there is any other method, I'm not aware of it), so how does this happen?
Is there someplace where the terminal logs all the keystrokes? Is it some sort of buffer? But, then again, if it was a buffer, it would be cleared out after a while, would it not?
How does this system work?
history
command but how this whole system of remembering old commands works.