Lesson 5 | Repeating previous commands |
Objective | Use history substitution to repeat previous commands. |
Command form | What it does |
% !! | Repeats the previous command |
% !N | Repeats command number N from the history list |
% !pattern | Repeats the most recent command that starts with pattern |