Is there a way to repeat your last command with additional flags?
Example:
Say I do this:
rm myFavouriteDirectory
I will get a reply:
rm: myFavouriteDirectory/: is a directory
Obviously what I meant to do was:
rm -rf myFavouriteDirectory
Is there some way to repeat the last command with flags like !! -rf (this doesn't work)
rm -rf $_.Usuallyis meant for.$_is for the last parameter from the previous command.