I use a shell every day. Almost always, I want to repeat a previous command, or repeat it after a slight modification. A very convenient way is to use arrow-up to get the most recent command back. Another common trick is to type ctrl-r and incrementally search for a previously used command….
Source: https://henrikwarne.com/2018/08/11/my-favorite-command-line-shortcuts/