[CentOS] reuse the history

Jim Wildman jim at rossberry.com
Fri Oct 17 18:13:41 UTC 2008

On Fri, 17 Oct 2008, ann kok wrote:

> Which command I can only select "traceroute" to run?
> $ history |grep traceroute
>   26  traceroute
>   27  traceroute -n
>   28  traceroute
>   29  traceroute yahoo.com
>   46  traceroute
csh history


or !26:s/168/122/ to change it


to get #46 (or the last command to have trac at the start_

to run the last command with trace anywhere in the cmdline


to invoke your $EDITOR on the last command

(next to last)


Jim Wildman, CISSP, RHCE       jim at rossberry.com http://www.rossberry.com
"Society in every state is a blessing, but Government, even in its best
state, is a necessary evil; in its worst state, an intolerable one."
Thomas Paine

More information about the CentOS mailing list