![]() Method 1 - Repeat last command using exclamation marks ![]() Now, let me show you how to execute the last command with some practical examples. However, like I said already, there are a few other methods to do this. This method will work on all SHELL, regardless of the Linux distribution you use. This is the most commonly used way by many users to execute the previous command. $ ls -l $ pwd $ date $ uname -rĪs I mentioned earlier, we can execute the last command by simply pressing the UP arrow and hit ENTER key. Method 7 - Repeat last commands using ALT+period key.Method 6 - Repeat previously executed commands using fc command.Method 5 - Use CTRL+p and CTRL+o to re-run last commands.Method 4 - Use hyphen symbol with command prefix numbers.Method 3 - Re-execute previous commands using reverse-search.Method 1 - Repeat last command using exclamation marks.
0 Comments
Leave a Reply. |