When you’re in the bash prompt, you can use the up- and down-arrow keys to recall previously typed commands.
You can also press Ctrl-R and start typing part of another command to find the last command that contains the letters you are typing. Thus if you want to find the last change-directory, type "[Ctrl-R]cd", and the command line will display the last "cd" command you typed.
If you start typing a filename or directory name, you can press [Tab] and bash will complete the file or directory name for you, assuming that such a file exists and is the only one that starts with the typed-in part. For example, if you type "ls br[Tab]", bash will complete the filename to "brushtopbm", if this file exists and is the only file starting with "br".