Terry asked:
> I have a question about Linux consoles. [...] Does a Linux console retrieve all 5 at once, as IDLE does?
Not typically. Like the Windows console, Linux consoles are also line-oriented, and hitting up-arrow cycles through each line, one at a time.
The bash shell offers a special "operate-and-go-next" command to operate on a particular history line and then immediately retrieve the next history line:
http://web.mit.edu/gnu/doc/html/features_7.html
but I think that's about as close as any standard Linux console gets to the ability to retrieve multiple lines from history at once.