By default only the previous command is saved in the command history list.
Set the environment variable HISTSIZE. For example:
HISTSIZE=50;export HISTSIZE
This will keep a history of the fifty (50) most recent commands that you have used.
 This site maintained by
unixhelp@ed.ac.uk