Both shells let you display or modify previous commands. Commands in the history list can be modified using:
The fc and hist commands
Bash also supports a command history mechanism very similar to that of the C shell. Because the interactive line-editing features are considerably superior, and because Bash’s command history is almost identical to that of the C shell, we have chosen not to cover those features here. See Chapter 5 and the Bash manpage for more information.