How to clear typing history

broken image

If you typed: emasc /home/fred/mywork.java /tmp/testme.java This maybe useful if you make a spelling mistake, for example.

broken image

“ commandName !*” will execute the “commandName” with any arguments you used on your last command. Will re-run the command that you last typed starting with “cd”. !string will execute the last command starting with that “string” and !?string? will execute the last command containing the word “string”. !-n will execute the command n times before (in other words !-1 is equivalent to !!). Use !! to execute the last command you typed. You can also type !n to execute command number n. Type “history” (without options) to see the the entire history list. The history command can be used to list Bash's log of the commands you have typed: Press to execute them or use the left and right arrow keys to edit the command first. Use the up and down key's to scroll through previously typed commands.