Here are other command history shortcuts which may come in handy for you:
"Bang, bang": Typing !! (called "bang bang") executes the last command in the history.
"Bang number": Typing !number (as in !302) will execute the command which is numbered 302 in the history file.
"Bang string": Typing !string (as in !rpm) will execute a command with that matching string from the history file.
Up arrow and down-arrow: At the Bash shell prompt, you can simply press the Up arrow to move back through previous commands in your history list (the Down arrow will move you forward through the commands) until you find the command you want. Press Enter to execute the command, just as if you had typed it on the command line.
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.