Ditto shortcut program for mac

broken image
broken image

After finding the command to be executed repeatedly, press enter to repeat the command parameters (i.e. Query a past instruction in the history table. But there are some better ways, for example, to master the following shortcut keys.Ģ) ! a: Repeat the previous instruction starting with aģ) ! Number: repeat the previous instruction with number recorded in the history tableĤ) !- Number: repeat the previous number instructionĥ) !$: Indicates that the last item in the previous command is obtainedĦ) Use Ctrl + R to enter the history search mode.

broken image

Of course, you can use the up arrow key to view the commands that have been run before. Sometimes we need to repeat the previous command in bash.