By noticing the particular order number of the command in the history buffer, that command can be re-executed by typing:
where number is the ordered number of that command in history buffer. The alternative way is the use of the beginning of the command. If the history buffer contained:
965 cd temp
966 mkdir mepis
967 man ftp
969 ls /var
970 cd temp
972 cd newdir
Entering the command:
Would cause the previous mkdir command to re-executed. By entering ! and a part of a command the shell will look back into the history buffer and will re-execute the first command that it finds that matches the part of a command that was entered.
Home - Table Of Contents - Contact Us
CertiGuide to A+ (A+ 4 Real) (http://www.CertiGuide.com/apfr/) on CertiGuide.com
Version 1.0 - Version Date: March 29, 2005
Adapted with permission from a work created by Tcat Houser et al.
CertiGuide.com Version © Copyright 2005 Charles M. Kozierok. All Rights Reserved.
Not responsible for any loss resulting from the use of this site.