[EMAIL PROTECTED] wrote: > My real meaning in my last mail is that when we carry out a > command exactly in a second time ,in fact we could not need > to create a new one but we use the old one and locate > ourselves on the location of the old command.If we could > make the shell running in this way, when we carry out a > same command,we could get to the location of the > command(the old one) and we could carry out the commands we > very often do near the old one with only a few presses of > 'up' or 'down' arrow.
Try this. Try using Control-r to search backward in history for your command. Then try using Control-o to Operate on the line and to get the next line. $ echo one $ echo two $ echo three ... type in control-r to start the search then "one" to locate it ... (reverse-i-search)`one': echo one ... type in control-o to operate on it and get the next line ... $ echo two ... type in control-o to operate on it and get the next line ... $ echo three The bash documentation for the says: operate-and-get-next (C-o) Accept the current line for execution and fetch the next line relative to the current line from the history for editing. Bob