How To Repeat The Last Command In Linux Without Using The Arrow Keys
To repeat commands you can normally use the old csh! history operator “!!” (without quotes) for the most recent command, if you want to just repeat the prior command then you can use !-2, !foo for the most recent starting with the subsrting “foo.” You can also use the fc command or just use :p to print the history operator suggestion. How to repeat the last command in Linux without using the arrow keys Let’s see some of the ways to recall commands at the shell prompt:...