It just expands into the last command you put in your shell, so it’s useful for retrying a command that you want to prepend with sudo for example, if you realize you needed elevated privileges, or maybe you want to pipe something in it, pipe it through something, redirect its output etc.
It just expands into the last command you put in your shell, so it’s useful for retrying a command that you want to prepend with
sudo
for example, if you realize you needed elevated privileges, or maybe you want to pipe something in it, pipe it through something, redirect its output etc.Brilliant – I’ve needed this so many times. Thanks for the explanation